summaryrefslogtreecommitdiff
path: root/acprep
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2011-12-21 17:29:37 -0600
committerJohn Wiegley <johnw@newartisans.com>2011-12-21 17:29:37 -0600
commit63db5511fb5df02eccf009c7f98b0bb4215de67f (patch)
tree4545a6a81c8eb24a49a458d064345ad4d0bb2211 /acprep
parent989d7a5811dfd16a375f235c27bb95c8fc666e90 (diff)
downloadfork-ledger-63db5511fb5df02eccf009c7f98b0bb4215de67f.tar.gz
fork-ledger-63db5511fb5df02eccf009c7f98b0bb4215de67f.tar.bz2
fork-ledger-63db5511fb5df02eccf009c7f98b0bb4215de67f.zip
Defend against unknown versions of Ubuntu
Diffstat (limited to 'acprep')
-rwxr-xr-xacprep8
1 files changed, 6 insertions, 2 deletions
diff --git a/acprep b/acprep
index e7d8b6d4..7ddc0360 100755
--- a/acprep
+++ b/acprep
@@ -925,8 +925,12 @@ class PrepareBuild(CommandLineApp):
'lcov',
'sloccount'
] + self.boost_info.dependencies('ubuntu-oeneric')
- self.log.info('Executing: ' + string.join(packages, ' '))
- self.execute(*packages)
+ else:
+ self.log.info('I do not recognize your version of Ubuntu!')
+ packages = None
+ if packages:
+ self.log.info('Executing: ' + string.join(packages, ' '))
+ self.execute(*packages)
if exists('/etc/redhat-release'):
release = open('/etc/redhat-release')