Make debian package builder more robust in uninstall step
BUG= R=lrn@google.com Review-Url: https://codereview.chromium.org/2950783002 .
This commit is contained in:
@@ -129,7 +129,8 @@ def SrcSteps(build_info):
|
||||
'--out_dir', builddir])
|
||||
|
||||
with bot.BuildStep('Sanity check installation'):
|
||||
if os.path.exists('/usr/bin/dart'):
|
||||
if os.path.exists('/usr/bin/dart') or os.path.exists(
|
||||
'/usr/lib/dart/bin/dart2js'):
|
||||
print "Dart already installed, removing"
|
||||
UninstallDart()
|
||||
TestInstallation(assume_installed=False)
|
||||
|
||||
Reference in New Issue
Block a user