aboutsummaryrefslogtreecommitdiffstats
path: root/iurt2
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2005-12-29 15:40:23 +0000
committerFlorent Villard <warly@mandriva.com>2005-12-29 15:40:23 +0000
commit66bf60b25af5e6e657c8066c190ef0bd8e54a9a5 (patch)
tree5bfe9e8189afc49dd11db6a3ed5f50b404b16709 /iurt2
parent7ca577dcb8ded863910112ab3f2c39bd4922e2e2 (diff)
downloadiurt-66bf60b25af5e6e657c8066c190ef0bd8e54a9a5.tar
iurt-66bf60b25af5e6e657c8066c190ef0bd8e54a9a5.tar.gz
iurt-66bf60b25af5e6e657c8066c190ef0bd8e54a9a5.tar.bz2
iurt-66bf60b25af5e6e657c8066c190ef0bd8e54a9a5.tar.xz
iurt-66bf60b25af5e6e657c8066c190ef0bd8e54a9a5.zip
Check if unwanted_packages is empty or not before trying to match
Diffstat (limited to 'iurt2')
-rwxr-xr-xiurt22
1 files changed, 1 insertions, 1 deletions
diff --git a/iurt2 b/iurt2
index fbb9e66..2cc6979 100755
--- a/iurt2
+++ b/iurt2
@@ -165,7 +165,7 @@ foreach my $dir ("$config->{repository}/$distro_version/SRPMS/$media/", @special
$srpm = $1
}
$srpm =~ /(.*)-[^-]+-[^-]+\.src\.rpm$/ or next;
- if ($srpm =~ /$config->{unwanted_packages}/) { next }
+ if ($config->{unwanted_packages} && $srpm =~ /$config->{unwanted_packages}/) { next }
my $ok = 1;
if (check_version($srpm)) {
defined $cache->{failure}{$srpm} && defined $cache->{failure}{$srpm}{$my_arch} and next;