diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-08-19 07:26:11 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-08-19 07:26:11 +0100 |
commit | bb3508ad01aec32ebadf2ee65e18c0c6d5e8ba22 (patch) | |
tree | 43a5911290019825ba7e7e76a554bd7cb7252ee4 | |
parent | aa9db3c21a2b19f9752caab8242a23e5b9ad285e (diff) | |
download | liw-automation-bb3508ad01aec32ebadf2ee65e18c0c6d5e8ba22.tar.gz |
Have pbuilder-create run pbuilder --clean afterwards.
This is good for not filling up / with junk.
-rwxr-xr-x | scripts/pbuilder-create | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/pbuilder-create b/scripts/pbuilder-create index a074607..1afa2c6 100755 --- a/scripts/pbuilder-create +++ b/scripts/pbuilder-create @@ -58,6 +58,11 @@ class PbuilderCreate(cliapp.Application): if self.settings['othermirror']: self.pbuilder(release, arch, 'custom', self.settings['othermirror']) + + argv = ['pbuilder', '--clean'] + if self.settings['verbose']: + print ' '.join(argv) + self.runcmd(argv) def pbuilder(self, release, arch, suffix, othermirror): tgz = self.tgz(release, arch, suffix) |