diff options
author | Francois Pons <fpons@mandriva.com> | 2002-10-16 14:07:35 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2002-10-16 14:07:35 +0000 |
commit | eb79b08d2091d9e311515da043037a2f0c7fdf00 (patch) | |
tree | f9233dee89a2392ca9d0ef17206ed0dfc79f9e56 /gendistrib | |
parent | 9be8d3b3407562628b07f0b2c27b673ef208f225 (diff) | |
download | rpmtools-eb79b08d2091d9e311515da043037a2f0c7fdf00.tar rpmtools-eb79b08d2091d9e311515da043037a2f0c7fdf00.tar.gz rpmtools-eb79b08d2091d9e311515da043037a2f0c7fdf00.tar.bz2 rpmtools-eb79b08d2091d9e311515da043037a2f0c7fdf00.tar.xz rpmtools-eb79b08d2091d9e311515da043037a2f0c7fdf00.zip |
4.5-3mdk4.5.3
Diffstat (limited to 'gendistrib')
-rwxr-xr-x | gendistrib | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -54,23 +54,24 @@ clean_cache(); for (0..$#hdlists) { my $e = $hdlists[$_]; + my $r; #- try to find the right repository where can be found the directory #- listed in the hdlist file. #- if the number of root is equal the number of medium, assume a medium #- foreach root, else try to find a valid root containing the medium. if (scalar(@hdlists ) == scalar(@root)) { - $root = $root[$_]; + $r = $root[$_]; } else { foreach (@root) { - -d "$_/$e->{dir}" and $root = $_, last; + -d "$_/$e->{dir}" and $r = $_, last; } } - -d "$root/$e->{dir}" or die "unable to find a valid root directory which contains $e->{dir}\n"; + -d "$r/$e->{dir}" or die "unable to find a valid root directory which contains $e->{dir}\n"; - print STDERR "parsing rpm files in directory $root/$e->{dir}\n"; + print STDERR "parsing rpm files in directory $r/$e->{dir}\n"; my @headers = $urpm->parse_rpms_build_headers(dir => $headers_dir, - rpms => [ glob("$root/$e->{dir}/*.rpm") ]); + rpms => [ glob("$r/$e->{dir}/*.rpm") ]); $e->{headers} = \@headers; } |