mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-14 00:21:08 +00:00
pbuilder-dist: abort if pbuilder/cowbuilder is not installed.
This commit is contained in:
parent
7a5865fd07
commit
68e7eafe79
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user