diff options
author | Florent Villard <warly@mandriva.com> | 2005-12-29 15:40:23 +0000 |
---|---|---|
committer | Florent Villard <warly@mandriva.com> | 2005-12-29 15:40:23 +0000 |
commit | 66bf60b25af5e6e657c8066c190ef0bd8e54a9a5 (patch) | |
tree | 5bfe9e8189afc49dd11db6a3ed5f50b404b16709 /iurt2 | |
parent | 7ca577dcb8ded863910112ab3f2c39bd4922e2e2 (diff) | |
download | iurt-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-x | iurt2 | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |