diff options
author | Colin Walters <walters@verbum.org> | 2010-05-19 10:05:16 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-05-19 10:05:16 -0400 |
commit | bc19ca5e8f2543a8f8c539d75390c8c80d58e911 (patch) | |
tree | 9c341bb81e8889c8e2236961c2c7fdc99e30d6ce /fedpkg-pull-build-chain | |
parent | 9a30b373d2daa89cf524eb600ea04c552d3d7d6d (diff) | |
download | fedpkg-make-pull-bc19ca5e8f2543a8f8c539d75390c8c80d58e911.tar.gz fedpkg-make-pull-bc19ca5e8f2543a8f8c539d75390c8c80d58e911.tar.xz fedpkg-make-pull-bc19ca5e8f2543a8f8c539d75390c8c80d58e911.zip |
Only unlink rpms, not log files
Diffstat (limited to 'fedpkg-pull-build-chain')
-rwxr-xr-x | fedpkg-pull-build-chain | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fedpkg-pull-build-chain b/fedpkg-pull-build-chain index 6aad881..2e3e07c 100755 --- a/fedpkg-pull-build-chain +++ b/fedpkg-pull-build-chain @@ -146,9 +146,8 @@ def main(): except OSError, e: # assume EEXIST, for filename in os.listdir(mock_resultdir): - if filename == 'lastbuild-status': - continue - os.unlink(os.path.join(mock_resultdir, filename)) + if filename.endswith('.rpm'): + os.unlink(os.path.join(mock_resultdir, filename)) lastbuild_filepath = os.path.join(mock_resultdir, 'lastbuild-status') if os.path.exists(lastbuild_filepath): |