mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-16 01:21:07 +00:00
Fix bug in pbuilder-dist whereby the error message with invalid distribution names (not alpha) printed "%s" instead of the name.
This commit is contained in:
parent
3bf7f10b53
commit
07dd830414
@ -128,7 +128,7 @@ class pbuilder_dist:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
if not distro.isalpha():
|
if not distro.isalpha():
|
||||||
print 'Error: «%s» is an invalid distribution codename.'
|
print 'Error: «%s» is an invalid distribution codename.' % distro
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
if not os.path.isfile(os.path.join('/usr/share/debootstrap/scripts/', distro)):
|
if not os.path.isfile(os.path.join('/usr/share/debootstrap/scripts/', distro)):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user