pbuilder-dist: abort if pbuilder/cowbuilder is not installed.

This commit is contained in:
Siegfried-Angel Gevatter Pujals 2009-03-04 19:00:57 +01:00
parent 7a5865fd07
commit 68e7eafe79

View File

@ -73,6 +73,15 @@ class pbuilder_dist:
# Builder
self.builder = builder
# Ensure that the used builder is installed
for file in os.environ['PATH'].split(':'):
if os.path.exists(os.path.join(file, builder)):
builder = ''
break
if builder:
print 'Error: Could not find "%s".' % builder
sys.exit(1)
##############################################################
if 'PBUILDFOLDER' in os.environ: