Ubuntu Pastebin

Paste from Nish at Mon, 19 Sep 2016 17:34:39 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/usd-import b/usd-import
index ceba39e..02d6063 100755
--- a/usd-import
+++ b/usd-import
@@ -813,9 +813,14 @@ def main():
 
     parent_overrides = parse_parentfile(pkgname, args.parentfile)
 
-    proto = "git" if no_push else "git+ssh"
-    remote_url = ('%s://%s@git.launchpad.net/~%s/ubuntu/+source/%s' %
-                  (proto, user, owner, pkgname))
+    if no_push:
+        proto = "git"
+        user_prefix = ""
+    else:
+        proto = "git+ssh"
+        user_prefix = "%s@" % user
+    remote_url = ('%s://%sgit.launchpad.net/~%s/ubuntu/+source/%s' %
+                  (proto, user_prefix, owner, pkgname))
 
     local_repo = USDGitRepository(pkgname,
                                   args.directory,
Download as text