aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-26 18:21:30 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-26 18:21:30 +0000
commitc74efdb64f25d0b45fe31a469a6bd8b11c6fe254 (patch)
tree88c3249769dee8f28eaa59789a6c2c419f4f4e9a
parent3c28742472a4f9ccb374797a8c5e14c2258f0d8f (diff)
downloadiurt-c74efdb64f25d0b45fe31a469a6bd8b11c6fe254.tar
iurt-c74efdb64f25d0b45fe31a469a6bd8b11c6fe254.tar.gz
iurt-c74efdb64f25d0b45fe31a469a6bd8b11c6fe254.tar.bz2
iurt-c74efdb64f25d0b45fe31a469a6bd8b11c6fe254.tar.xz
iurt-c74efdb64f25d0b45fe31a469a6bd8b11c6fe254.zip
(check_media) cleanup/simplify
-rwxr-xr-xiurt23
1 files changed, 1 insertions, 2 deletions
diff --git a/iurt2 b/iurt2
index 0cb1af3..44d41b3 100755
--- a/iurt2
+++ b/iurt2
@@ -1292,9 +1292,9 @@ sub check_media {
if (-f $synthesis_file) {
plog("Parsing $synthesis_file");
if (open my $syn, "zcat $synthesis_file |") {
- my @prov;
local $_;
while (<$syn>) {
+ my @prov;
if (/^\@provides@(.*)/) {
foreach my $p (split '@', $1) {
if ($p =~ /([^[]+)(?:\[(.*)\])?/g) {
@@ -1309,7 +1309,6 @@ sub check_media {
foreach (@prov) {
$pack_provide->{$_} = $name;
}
- @prov = ();
}
}
} else {