summaryrefslogtreecommitdiff
path: root/mkbaselibs
diff options
context:
space:
mode:
authorRuediger Oertel <ro@suse.de>2010-08-12 15:46:41 +0200
committerRuediger Oertel <ro@suse.de>2010-08-12 15:46:41 +0200
commit9b2948ffa62f7950c9f30b131a3e4950750d68e5 (patch)
treebdaca2affa9b8dd54c2fefefa23b4a765c22ecc6 /mkbaselibs
parentac0a3892f580b93548bf0829799e61870d86cc5b (diff)
downloadobs-build-9b2948ffa62f7950c9f30b131a3e4950750d68e5.tar.gz
obs-build-9b2948ffa62f7950c9f30b131a3e4950750d68e5.tar.bz2
obs-build-9b2948ffa62f7950c9f30b131a3e4950750d68e5.zip
mkbaselibs: gracefully skip non-existing rpms
Diffstat (limited to 'mkbaselibs')
-rwxr-xr-xmkbaselibs4
1 files changed, 4 insertions, 0 deletions
diff --git a/mkbaselibs b/mkbaselibs
index c6ef8b2..e130f2f 100755
--- a/mkbaselibs
+++ b/mkbaselibs
@@ -1092,6 +1092,10 @@ my @rpms;
my @debugrpms;
for my $rpm (@pkgs) {
my $rpmn = $rpm;
+ unless (-f $rpm) {
+ warn ("$rpm does not exist, skipping\n");
+ next;
+ }
next if $rpm =~ /\.(no)?src\.rpm$/; # ignore source rpms
next if $rpm =~ /\.spm$/;
$rpmn =~ s/.*\///; # Remove leading path info