aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Scherer <misc@mandriva.com>2005-12-09 14:15:45 +0000
committerMichael Scherer <misc@mandriva.com>2005-12-09 14:15:45 +0000
commit9bcddc61e64e7c119c4497895bec3af4db049bc1 (patch)
treee798ffdd61a787f6a5e3be4c220683beabf3615f
parent2f84d9126aa10497cb0578e1899d0627f7e5ddf6 (diff)
downloadbootsplash-9bcddc61e64e7c119c4497895bec3af4db049bc1.tar
bootsplash-9bcddc61e64e7c119c4497895bec3af4db049bc1.tar.gz
bootsplash-9bcddc61e64e7c119c4497895bec3af4db049bc1.tar.bz2
bootsplash-9bcddc61e64e7c119c4497895bec3af4db049bc1.tar.xz
bootsplash-9bcddc61e64e7c119c4497895bec3af4db049bc1.zip
- Do not stop when a file with the same name of the package exist in current directory ( thanks blino )
-rwxr-xr-xrpmbuildupdate2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmbuildupdate b/rpmbuildupdate
index 6a9d413..86312b1 100755
--- a/rpmbuildupdate
+++ b/rpmbuildupdate
@@ -642,7 +642,7 @@ sub main {
if ($ARGV[0]) {
$name = $ARGV[0];
$version = $ARGV[1];
- if (-f $name) {
+ if (-f $name && $name =~ /(?:.spec|.(?:no)?src.rpm)$/) {
build_from_spec($name, $version) if $name =~ /.spec$/;
build_from_src($name, $version) if $name =~ /.(?:no)?src.rpm$/;
} else {