diff options
author | John Wiegley <johnw@newartisans.com> | 2011-12-21 17:29:37 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2011-12-21 17:29:37 -0600 |
commit | 63db5511fb5df02eccf009c7f98b0bb4215de67f (patch) | |
tree | 4545a6a81c8eb24a49a458d064345ad4d0bb2211 /acprep | |
parent | 989d7a5811dfd16a375f235c27bb95c8fc666e90 (diff) | |
download | fork-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-x | acprep | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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') |