From dbb0dcface9cbf125fc6b7c9c116d38445fcc9a8 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Wed, 12 Feb 2014 21:32:46 -0500 Subject: [PATCH] Fix repository linking --- static/js/app.js | 4 ++-- test/testlogs.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/static/js/app.js b/static/js/app.js index 5fa2993d7..7f00d59bb 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -2531,14 +2531,14 @@ quayApp.directive('buildLogCommand', function () { '': function(pieces) { var rnamespace = pieces.length == 1 ? '_' : pieces[0]; var rname = pieces[pieces.length - 1]; - return 'https://index.docker.io/' + rnamespace + '/' + rname + '/'; + return 'https://index.docker.io/u/' + rnamespace + '/' + rname + '/'; } }; var kindHandlers = { 'FROM': function(title) { var pieces = title.split('/'); - var registry = pieces.length < 2 ? '' : pieces[0]; + var registry = pieces.length < 3 ? '' : pieces[0]; if (!registryHandlers[registry]) { return title; } diff --git a/test/testlogs.py b/test/testlogs.py index 1be440934..76a68b1bf 100644 --- a/test/testlogs.py +++ b/test/testlogs.py @@ -113,7 +113,8 @@ class TestBuildLogs(BuildLogs): sentence = get_sentence() command = random.choice(self.COMMAND_TYPES) if command == 'FROM': - sentence = random.choice(['ubuntu', 'quay.io/devtable/simple', + sentence = random.choice(['ubuntu', 'lopter/raring-base', + 'quay.io/devtable/simple', 'quay.io/buynlarge/orgrepo', 'stackbrew/ubuntu:precise'])