narval/piuparts: replace @DIST@ with the actual dist in apt repository uris draft stable
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 18 Dec 2013 17:54:11 +0100
branchstable
changeset 1319 9ef256811ba1
parent 1318 26d2b1b856b4
narval/piuparts: replace @DIST@ with the actual dist in apt repository uris
narval/apycot.py
--- a/narval/apycot.py	Wed Dec 18 16:06:44 2013 +0100
+++ b/narval/apycot.py	Wed Dec 18 17:54:11 2013 +0100
@@ -215,7 +215,7 @@
         basetgz = osp.join(self.basetgz, '%s-%s.tgz' % (dist, arch))
         command = ['sudo', 'piuparts', '-b', basetgz, '-d', dist]
         for extra_repo in self.options.get('extra-repos'):
-            command += ['--extra-repo', extra_repo]
+            command += ['--extra-repo', extra_repo.replace('@DIST@', dist)]
         command.append(path)
         cmd = subprocess.Popen(command, stdout=subprocess.PIPE,
                 stdin=open('/dev/null'), stderr=subprocess.STDOUT)