summaryrefslogtreecommitdiffstats
path: root/BuildManager
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2007-09-19 17:42:47 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2007-09-19 17:42:47 +0000
commitdfc59354a7e3adfb5789b60d2375d1f0c5739750 (patch)
treeb4e3019bb4d24e32b28d85fb284e791bbeb9d2c9 /BuildManager
parent891b00c6e67bbafc115a5e04221f54307ada1d9e (diff)
downloadbm-dfc59354a7e3adfb5789b60d2375d1f0c5739750.tar
bm-dfc59354a7e3adfb5789b60d2375d1f0c5739750.tar.gz
bm-dfc59354a7e3adfb5789b60d2375d1f0c5739750.tar.bz2
bm-dfc59354a7e3adfb5789b60d2375d1f0c5739750.tar.xz
bm-dfc59354a7e3adfb5789b60d2375d1f0c5739750.zip
Only move .src.rpm files when using --move-srpm.
Requested by Caio Begotti.
Diffstat (limited to 'BuildManager')
-rw-r--r--BuildManager/build.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/BuildManager/build.py b/BuildManager/build.py
index 94157b3..8fed7b0 100644
--- a/BuildManager/build.py
+++ b/BuildManager/build.py
@@ -9,6 +9,7 @@ import thread
import sys, os
import time
import shutil
+import glob
__all__ = ["PackageBuilder"]
@@ -100,7 +101,7 @@ class PackageBuilder:
os.unlink(pkg.file)
if self.opts.move_srpm:
dir = os.path.join(pkg.builddir, "SRPMS")
- for file in os.listdir(dir):
+ for file in glob.glob(os.path.join(dir, "*.src.rpm")):
move_file(os.path.join(dir, file),
self.opts.move_srpm,
dryrun=self.opts.dryrun)