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:
Iain Lane 2008-05-16 19:51:45 +01:00
parent 3bf7f10b53
commit 07dd830414

View File

@ -128,7 +128,7 @@ class pbuilder_dist:
"""
if not distro.isalpha():
print 'Error: «%s» is an invalid distribution codename.'
print 'Error: «%s» is an invalid distribution codename.' % distro
sys.exit(1)
if not os.path.isfile(os.path.join('/usr/share/debootstrap/scripts/', distro)):