mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 23:51:08 +00:00
if...else precedence in dget calls
This commit is contained in:
parent
0a64cae0da
commit
5182d62de1
@ -52,7 +52,7 @@ def pull(package, version, unpack=False):
|
|||||||
urls.append(dsc_url(DEFAULT_DEBIAN_MIRROR, 'main', package, version))
|
urls.append(dsc_url(DEFAULT_DEBIAN_MIRROR, 'main', package, version))
|
||||||
|
|
||||||
for url in urls:
|
for url in urls:
|
||||||
cmd = ('dget', '-u' + 'x' if unpack else 'd', url)
|
cmd = ('dget', '-u' + ('x' if unpack else 'd'), url)
|
||||||
Logger.command(cmd)
|
Logger.command(cmd)
|
||||||
p = subprocess.call(cmd)
|
p = subprocess.call(cmd)
|
||||||
if p == 0:
|
if p == 0:
|
||||||
|
@ -100,7 +100,7 @@ if __name__ == '__main__':
|
|||||||
Logger.normal('Fetching the source for %s from %s (%s)...',
|
Logger.normal('Fetching the source for %s from %s (%s)...',
|
||||||
package, release.capitalize(), pocket)
|
package, release.capitalize(), pocket)
|
||||||
for url in urls:
|
for url in urls:
|
||||||
cmd = ('dget', '-u' + 'd' if options.download_only else 'x', url)
|
cmd = ('dget', '-u' + ('d' if options.download_only else 'x'), url)
|
||||||
Logger.command(cmd)
|
Logger.command(cmd)
|
||||||
r = subprocess.call(cmd)
|
r = subprocess.call(cmd)
|
||||||
if r == 0:
|
if r == 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user