9 |
|
|
10 |
my $releases = 2; |
my $releases = 2; |
11 |
|
|
12 |
my $rpm_flags = RPM2->vsf_nodsa; |
my $releasedir = '/releases'; |
13 |
my $repodir = '/releases/7'; |
my $smerel = '7'; |
14 |
|
my $centosrel = '4'; |
15 |
|
my $fedorarel = '3'; |
16 |
|
my $builds = '/builds/rpms'; |
17 |
my $stagedir = '/builds'; |
my $stagedir = '/builds'; |
18 |
my @repos = qw( |
my $arch = `uname -i`; |
19 |
/releases/7/smeos/i386/CentOS/RPMS |
chomp $arch; |
20 |
/releases/7/smeupdates/i386/RPMS |
#$arch = 'x86_64'; |
21 |
/releases/7/smeupdates-testing/i386/RPMS |
|
22 |
/releases/7/smeextras/i386/RPMS |
my @repos = ( |
23 |
/releases/7/smeaddons/i386/RPMS |
"$releasedir/$smerel/smeos/$arch/SME", |
24 |
/releases/7/smetest/i386/RPMS |
"$releasedir/$smerel/smeos/$arch/SME/RPMS", |
25 |
/releases/7/smedev/i386/RPMS |
"$releasedir/$smerel/smeos/$arch/CentOS/RPMS", |
26 |
/builds/rpms/RPMS/i386 |
"$releasedir/$smerel/smeupdates/$arch/RPMS", |
27 |
/builds/rpms/RPMS/i586 |
"$releasedir/$smerel/smeupdates-testing/$arch/RPMS", |
28 |
/builds/rpms/RPMS/i686 |
"$releasedir/$smerel/smeextras/$arch/RPMS", |
29 |
/builds/rpms/RPMS/noarch |
"$releasedir/$smerel/smeaddons/$arch/RPMS", |
30 |
/builds/RPMS |
"$releasedir/$smerel/smecontribs/$arch/RPMS", |
31 |
); |
"$releasedir/$smerel/smetest/$arch/RPMS", |
32 |
my $devrepo = (grep { m{/sme} } reverse @repos)[0]; |
"$releasedir/$smerel/smedev/$arch/RPMS", |
33 |
|
"$builds/RPMS/$arch", |
34 |
my @srcrepos = qw( |
"$builds/RPMS/i586", |
35 |
/mirrors/centos/4/fasttrack/SRPMS |
"$builds/RPMS/i686", |
36 |
/mirrors/centos/4/updates/SRPMS |
"$builds/RPMS/noarch", |
37 |
/mirrors/centos/4/os/SRPMS |
"$stagedir/RPMS-$arch", |
38 |
/mirrors/centos/4/extras/SRPMS |
); |
39 |
/mirrors/rpmforge/dag/source |
@repos = grep { ! m{/i[56]86$} } @repos if $arch eq 'x86_64'; |
40 |
/mirrors/atrpms/src/el4-i386/atrpms/stable |
|
41 |
/builds/rpms/SRPMS |
my @srcrepos = ( |
42 |
); |
"/mirrors/centos/$centosrel/fasttrack/SRPMS", |
43 |
|
"/mirrors/centos/$centosrel/updates/SRPMS", |
44 |
|
"/mirrors/centos/$centosrel/os/SRPMS", |
45 |
|
"/mirrors/centos/$centosrel/extras/SRPMS", |
46 |
|
"/mirrors/rpmforge/dag/source", |
47 |
|
"/mirrors/atrpms/src/el$centosrel-$arch/atrpms/stable", |
48 |
|
"/mirrors/atrpms/src/el$centosrel-$arch/atrpms/testing", |
49 |
|
"/mirrors/fedora/epel/$centosrel/SRPMS", |
50 |
|
"/mirrors/fedora/epel/testing/$centosrel/SRPMS", |
51 |
|
"/mirrors/fedora/core/updates/$fedorarel/SRPMS", |
52 |
|
"/mirrors/fedora/core/$fedorarel/source/SRPMS", |
53 |
|
"/mirrors/fedora/extras/$fedorarel/SRPMS", |
54 |
|
"$builds/SRPMS", |
55 |
|
); |
56 |
|
|
57 |
my %repohash; |
my $rpm_flags = RPM2->vsf_nodsaheader | RPM2->vsf_nodsa; |
58 |
my %srcrepohash; |
|
59 |
|
my @rpms; |
60 |
|
my %srpms; |
61 |
|
my %sources; |
62 |
my %changed; |
my %changed; |
63 |
my %copy; |
my %copy; |
|
my @remove; |
|
64 |
|
|
65 |
%{$srcrepohash{$stagedir}} = map { $_ => 0 } grep { /\.rpm$/ } readdir SRPMS if ( opendir SRPMS, "$stagedir/SRPMS" ); |
print "\nReading repos...\n"; |
|
closedir SRPMS; |
|
|
|
|
|
print "\n"; |
|
66 |
foreach my $repo ( @repos ) { |
foreach my $repo ( @repos ) { |
67 |
if ( $repo =~ m{^(.*/[0-9]+/sme[^/]*)/} ) { |
my $r = $repo; |
68 |
my $srcrepo = $1; |
if ( $repo =~ m{$stagedir/RPMS} ) { |
69 |
|
$r = $stagedir; |
70 |
|
} elsif ( $repo =~ m{$builds/RPMS} ) { |
71 |
|
$r = 'builds'; |
72 |
|
} elsif ( $repo =~ m{^($releasedir/$smerel/sme[^/]*)/} ) { |
73 |
|
$r = $1; |
74 |
|
} |
75 |
|
|
76 |
%{$srcrepohash{$srcrepo}} = map { $_ => 0 } grep { /\.rpm$/ } readdir SRPMS if ( opendir SRPMS, "$srcrepo/SRPMS" ); |
if ( $r eq $stagedir ) { |
77 |
|
opendir SRPMS, "$r/SRPMS-$arch" or next; |
78 |
|
foreach my $srpm ( grep { /\.rpm$/ } readdir SRPMS ) { |
79 |
|
$srpms{$r}{$srpm} = 0; |
80 |
|
$sources{$srpm} = "$r/SRPMS-$arch"; |
81 |
|
} |
82 |
|
closedir SRPMS; |
83 |
|
} elsif ( $r ne 'builds' ) { |
84 |
|
opendir SRPMS, "$r/SRPMS" or next; |
85 |
|
foreach my $srpm ( grep { /\.rpm$/ } readdir SRPMS ) { |
86 |
|
$srpms{$r}{$srpm} = 0; |
87 |
|
$sources{$srpm} = "$r/SRPMS"; |
88 |
|
} |
89 |
closedir SRPMS; |
closedir SRPMS; |
90 |
} |
} |
91 |
|
|
92 |
opendir RPMS, $repo; |
opendir RPMS, $repo or next; |
93 |
foreach my $rpm ( grep { m{\.rpm} } readdir RPMS ) { |
print " - $repo\n"; |
94 |
my $header = RPM2->open_package("$repo/$rpm", $rpm_flags); |
foreach my $pkg ( reverse sort map { RPM2->open_package("$repo/$_", $rpm_flags); } grep { /\.rpm$/ } readdir RPMS ) { |
95 |
my $pkg = $header->tag("NAME").".".$header->tag("ARCH"); |
my $rpm = { name => $pkg->tag("NAME"), |
96 |
if ( $repo =~ m{/builds/RPMS} ) { |
filename => join("-", map { $pkg->tag($_) } qw/name version release/) . "." . $pkg->tag("ARCH"), |
97 |
push @{$repohash{$pkg}{$stagedir}}, $header; |
version => $pkg->tag("VERSION"), |
98 |
} elsif ( $repo =~ m{/builds/} ) { |
release => $pkg->tag("RELEASE"), |
99 |
push @{$repohash{$pkg}{builds}}, $header; |
repo => $r, |
100 |
} elsif ( $repo =~ m{^(.*/[0-9]+/sme[^/]*)/} ) { |
rpm => $pkg, |
101 |
my $pos = $1; |
}; |
102 |
push @{$repohash{$pkg}{$pos}}, $header; |
my $source = $pkg->tag("SOURCERPM"); |
103 |
|
$source =~ s#-$rpm->{version}-$rpm->{release}.*##; |
104 |
|
$rpm->{source} = $source; |
105 |
|
|
106 |
|
if ( $rpm->{repo} =~ m{^$releasedir/$smerel/} && $rpm->{repo} !~ m{/smedev$} ) { |
107 |
|
$rpm->{repo} = 'deleted' if grep { $_->{repo} ne $rpm->{repo} && $_->{name} eq $rpm->{name} && $_->{rpm} ge $rpm->{rpm} } @rpms; |
108 |
|
$rpm->{repo} = 'deleted' if grep { $_->{repo} eq $rpm->{repo} && $_->{name} eq $rpm->{name} && $_->{rpm} gt $rpm->{rpm} } @rpms; |
109 |
|
$changed{$r}++ if $rpm->{repo} eq 'deleted'; |
110 |
} |
} |
111 |
|
|
112 |
|
push @rpms, $rpm; |
113 |
} |
} |
114 |
closedir RPMS; |
closedir RPMS; |
115 |
} |
} |
116 |
|
|
117 |
my %sources; |
print "\nReading source repos...\n"; |
118 |
foreach my $repo ( reverse @srcrepos ) { |
foreach my $repo ( reverse @srcrepos ) { |
119 |
my %temp_repo = map { $_ => $repo } grep { /\.rpm$/ } readdir SRPMS if ( opendir SRPMS, $repo ); |
my %temp_repo = map { $_ => $repo } grep { /\.rpm$/ } readdir SRPMS if ( opendir SRPMS, $repo ); |
120 |
closedir SRPMS; |
closedir SRPMS; |
121 |
|
|
122 |
%sources = (%sources, %temp_repo); |
%sources = (%sources, %temp_repo); |
123 |
} |
} |
124 |
|
|
125 |
foreach my $pkg ( keys %repohash ) { |
print "\nFinding latest packages...\n"; |
126 |
foreach my $repo ( @repos ) { |
my @latest; |
127 |
if ( $repo =~ m{/builds/RPMS} ) { |
foreach my $rpm ( reverse grep { $_->{repo} =~ m{^$releasedir/$smerel/} && $_->{repo} !~ m{/sme(addons|contribs|dev|extras)$} } @rpms ) { |
128 |
next unless $repohash{$pkg}{latest} || $repohash{$pkg}{$stagedir}; |
unless ( grep { $_->{name} eq $rpm->{name} && $_->{rpm} gt $rpm->{rpm} } @latest ) { |
129 |
my ($latest, @rest) = sort { $b cmp $a } @{$repohash{$pkg}{$stagedir}}; |
push @latest, $rpm; |
130 |
delete $repohash{$pkg}{$stagedir}; |
unless ( grep { $_->{repo} eq $stagedir && $_->{filename} eq $rpm->{filename} } @rpms ) { |
131 |
push @remove, map { $_->filename } @rest if @rest; |
push @{$copy{"$stagedir/RPMS-$arch"}}, $rpm->{rpm}->filename; |
132 |
if ( $repohash{$pkg}{latest} ) { |
push @rpms, { name => $rpm->{name}, |
133 |
if ($repohash{$pkg}{latest} ne $latest ) { |
filename => $rpm->{filename}, |
134 |
push @remove, $latest->filename; |
version => $rpm->{version}, |
135 |
push @{$copy{"$stagedir/RPMS"}}, $repohash{$pkg}{latest}->filename; |
release => $rpm->{release}, |
136 |
$repohash{$pkg}{$stagedir} = $repohash{$pkg}{latest}; |
repo => $stagedir, |
137 |
} else { |
rpm => $rpm->{rpm}, |
138 |
$repohash{$pkg}{$stagedir} = $latest; |
source => $rpm->{source} |
139 |
} |
}; |
140 |
|
} |
141 |
|
} |
142 |
|
} |
143 |
|
|
144 |
|
foreach my $rpm ( grep { $_->{repo} eq $stagedir } @rpms ) { |
145 |
|
$rpm->{repo} = 'deleted' unless grep { $_->{filename} eq $rpm->{filename} } @latest; |
146 |
|
} |
147 |
|
|
148 |
|
foreach my $rpm ( reverse grep { $_->{repo} =~ m{^$releasedir/$smerel/} && $_->{repo} =~ m{/sme(addons|contribs|extras)$} } @rpms ) { |
149 |
|
unless ( grep { $_->{name} eq $rpm->{name} && $_->{rpm} gt $rpm->{rpm} } @latest ) { |
150 |
|
push @latest, $rpm; |
151 |
|
} |
152 |
|
} |
153 |
|
|
154 |
|
print "\nFinding development packages...\n"; |
155 |
|
my @devel; |
156 |
|
my %versions; |
157 |
|
foreach my $rpm ( grep { $_->{repo} eq 'builds' } @rpms ) { |
158 |
|
next if grep { $_->{name} eq $rpm->{name} && $_->{rpm} ge $rpm->{rpm} } @latest; |
159 |
|
|
160 |
|
$versions{$rpm->{name}}{$rpm->{version}}++ unless grep { $_->{name} eq $rpm->{name} && $_->{rpm} eq $rpm->{rpm} } @devel; |
161 |
|
next if $versions{$rpm->{name}}{$rpm->{version}} > $releases || scalar keys %{$versions{$rpm->{name}}} > $releases; |
162 |
|
print "Possible update " . $rpm->{rpm}->filename . "\n" if grep { $_->{name} eq $rpm->{name} } @latest; |
163 |
|
|
164 |
|
push @devel, $rpm; |
165 |
|
unless ( grep { $_->{repo} =~ m{/smedev$} && $_->{filename} eq $rpm->{filename} } @rpms ) { |
166 |
|
push @{$copy{"$releasedir/$smerel/smedev/$arch/RPMS"}}, $rpm->{rpm}->filename; |
167 |
|
$changed{"$releasedir/$smerel/smedev"}++; |
168 |
|
push @rpms, { name => $rpm->{name}, |
169 |
|
filename => $rpm->{filename}, |
170 |
|
version => $rpm->{version}, |
171 |
|
release => $rpm->{release}, |
172 |
|
repo => "$releasedir/$smerel/smedev", |
173 |
|
rpm => $rpm->{rpm}, |
174 |
|
source => $rpm->{source} |
175 |
|
}; |
176 |
|
} |
177 |
|
} |
178 |
|
|
179 |
|
foreach my $rpm ( grep { $_->{repo} =~ m{/smedev$} } @rpms ) { |
180 |
|
$rpm->{repo} = 'deleted' unless grep { $_->{filename} eq $rpm->{filename} } @devel; |
181 |
|
} |
182 |
|
|
183 |
|
print "\nFinding source packages...\n"; |
184 |
|
foreach my $rpm ( grep { $_->{repo} !~ m{^(builds|deleted)$} } @rpms ) { |
185 |
|
my $src; |
186 |
|
my $srpm = $rpm->{rpm}->tag("SOURCERPM"); |
187 |
|
|
188 |
|
my @sources = (); |
189 |
|
push @sources, ($src = $srpm); |
190 |
|
push @sources, $src if (($src = $srpm) =~ s/\.el\d\.rf\./\.rf\./); |
191 |
|
push @sources, $src if (($src = $srpm) =~ s/\.[0-3]\.el\d+\.rf\./\.rf\./); |
192 |
|
push @sources, $src if (($src = $srpm) =~ s/\.(el|fc)\d\.at//); |
193 |
|
push @sources, $src if (($src = $srpm) =~ s/\.at//); |
194 |
|
push @sources, $src if (($src = $srpm) =~ s/\.(el|fc)\d//); |
195 |
|
push @sources, $src if (($src = $srpm) =~ s/\.\d+\.(el|fc)\d//); |
196 |
|
|
197 |
|
my $found = 0; |
198 |
|
my $repo = $rpm->{repo}; |
199 |
|
foreach my $source ( @sources ) { |
200 |
|
if ( $sources{$source} ) { |
201 |
|
if ($repo eq $stagedir) { |
202 |
|
push @{$copy{"$repo/SRPMS-$arch"}}, "$sources{$source}/$source" unless -f "$repo/SRPMS-$arch/$source"; |
203 |
} else { |
} else { |
204 |
push @remove, $latest->filename; |
unless ( -f "$repo/SRPMS/$source" ) { |
205 |
} |
push @{$copy{"$repo/SRPMS"}}, "$sources{$source}/$source"; |
206 |
} elsif ( $repo =~ m{^(.*/[0-9]+/sme[^/]*)/} ) { |
$changed{$repo}++; |
|
my $pos = $1; |
|
|
next unless $repohash{$pkg}{$pos}; |
|
|
if ( $pos =~ m{/smedev$} ) { |
|
|
next unless $repohash{$pkg}{latest}; |
|
|
my @rest = grep { $_ le $repohash{$pkg}{latest} } @{$repohash{$pkg}{$pos}}; |
|
|
if ( @rest ) { |
|
|
push @remove, map { $_->filename } @rest; |
|
|
$changed{$pos}++; |
|
|
@{$repohash{$pkg}{$pos}} = grep { $_ gt $repohash{$pkg}{latest} } @{$repohash{$pkg}{$pos}}; |
|
|
delete $repohash{$pkg}{$pos}; |
|
|
} |
|
|
} else { |
|
|
my ($latest, @rest) = sort { $b cmp $a } @{$repohash{$pkg}{$pos}}; |
|
|
delete $repohash{$pkg}{$pos}; |
|
|
if ( $repohash{$pkg}{latest} && $repohash{$pkg}{latest} ge $latest ) { |
|
|
push @rest, $latest; |
|
|
} else { |
|
|
$repohash{$pkg}{latest} = $latest; |
|
|
$repohash{$pkg}{$pos} = $latest; |
|
|
} |
|
|
if ( @rest ) { |
|
|
push @remove, map { $_->filename } @rest; |
|
|
$changed{$pos}++; |
|
207 |
} |
} |
208 |
} |
} |
209 |
|
$srpms{$repo}{$source}++; |
210 |
|
$found++; |
211 |
|
last; |
212 |
} |
} |
213 |
} |
} |
214 |
|
print "Can't find source for ".$rpm->{rpm}->filename."\n" unless $found; |
215 |
} |
} |
216 |
|
|
217 |
foreach my $pkg ( sort grep { $repohash{$_}{builds} } keys %repohash ) { |
my @remove; |
218 |
my %versions = (); |
foreach my $repo ( keys %srpms ) { |
219 |
foreach my $ver ( sort { $b cmp $a } @{$repohash{$pkg}{builds}} ) { |
foreach my $rpm ( keys %{$srpms{$repo}} ) { |
220 |
next if $repohash{$pkg}{latest} && $repohash{$pkg}{latest} ge $ver; |
unless ( $srpms{$repo}{$rpm} ) { |
221 |
|
if ($repo eq $stagedir) { |
222 |
$versions{$ver->tag("VERSION")}++; |
push @remove, "$repo/SRPMS-$arch/$rpm"; |
223 |
if ( $versions{$ver->tag("VERSION")} > $releases || (scalar keys %versions) > $releases ) { |
} else { |
224 |
foreach my $rpm ( grep { $ver eq $_ } @{$repohash{$pkg}{"$repodir/smedev"}} ) { |
push @remove, "$repo/SRPMS/$rpm"; |
225 |
push @remove, $rpm->filename; |
$changed{$repo}++; |
|
@{$repohash{$pkg}{"$repodir/smedev"}} = grep { $rpm ne $_ } @{$repohash{$pkg}{"$repodir/smedev"}}; |
|
|
$changed{"$repodir/smedev"}++; |
|
|
} |
|
|
} else { |
|
|
print "Possible update " . $ver->filename . "\n" if $repohash{$pkg}{latest}; |
|
|
if ( ! grep { $ver eq $_ } @{$repohash{$pkg}{"$repodir/smedev"}} ) { |
|
|
push @{$copy{$devrepo}}, $ver->filename; |
|
|
push @{$repohash{$pkg}{"$repodir/smedev"}}, $ver; |
|
|
$changed{"$repodir/smedev"}++; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
foreach my $pkg ( grep { $repohash{$_}{"$repodir/smedev"} } keys %repohash ) { |
|
|
foreach my $rpm ( @{$repohash{$pkg}{"$repodir/smedev"}} ) { |
|
|
unless ( grep { $rpm eq $_ } @{$repohash{$pkg}{builds}} ) { |
|
|
push @remove, $rpm->filename; |
|
|
@{$repohash{$pkg}{"$repodir/smedev"}} = grep { $rpm ne $_ } @{$repohash{$pkg}{"$repodir/smedev"}}; |
|
|
$changed{"$repodir/smedev"}++; |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
print "\n"; |
|
|
foreach my $repo ( sort keys %srcrepohash ) { |
|
|
foreach my $pkg ( sort grep { $repohash{$_}{$repo} } keys %repohash ) { |
|
|
my @rpms = ref($repohash{$pkg}{$repo}) eq "ARRAY" ? @{$repohash{$pkg}{$repo}} : ($repohash{$pkg}{$repo}); |
|
|
foreach my $rpm ( sort @rpms ) { |
|
|
my $src = $rpm->tag("SOURCERPM"); |
|
|
|
|
|
my @sources = (); |
|
|
push @sources, $src; |
|
|
push @sources, $src if ($src =~ s/\.2\.el4\.rf\./\.rf\./); |
|
|
push @sources, $src if ($src =~ s/\.el4\.rf\./\.rf\./); |
|
|
push @sources, $src if ($src =~ s/\.el4\.at\./\.at\./); |
|
|
push @sources, $src if ($src =~ s/\.rf\./\.dag\./); |
|
|
|
|
|
my $found = 0; |
|
|
foreach my $source ( @sources ) { |
|
|
if ( $sources{$source} ) { |
|
|
unless ( -f "$repo/SRPMS/$source" ) { |
|
|
push @{$copy{"$repo/SRPMS"}}, "$sources{$source}/$source"; |
|
|
$changed{$repo}++; |
|
|
} |
|
|
$srcrepohash{$repo}{$source}++; |
|
|
$found++; |
|
|
last; |
|
|
} elsif ( -f "$repo/SRPMS/$source" ) { |
|
|
print "Found missing source $repo/SRPMS/$source for ".$rpm->as_nvre()."\n"; |
|
|
$srcrepohash{$repo}{$source}++; |
|
|
$found++; |
|
|
} |
|
226 |
} |
} |
|
print "Can't find source for ".$rpm->as_nvre()."\n" unless $found; |
|
|
} |
|
|
} |
|
|
|
|
|
foreach my $rpm ( keys %{$srcrepohash{$repo}} ) { |
|
|
unless ( $srcrepohash{$repo}{$rpm} ) { |
|
|
push @remove, "$repo/SRPMS/$rpm"; |
|
|
$changed{$repo}++; |
|
227 |
} |
} |
228 |
} |
} |
229 |
} |
} |
230 |
|
|
231 |
print "\n"; |
print "\n"; |
232 |
foreach my $repo ( sort keys %copy ) { |
foreach my $repo ( sort keys %copy ) { |
233 |
foreach my $rpm ( sort keys %{{ map { $_ => 1 } @{$copy{$repo}} }} ) { |
foreach my $rpm ( keys %{{ map { $_ => 1 } @{$copy{$repo}} }} ) { |
234 |
print "copying $rpm to $repo/\n"; |
print "copying $rpm to $repo/\n"; |
235 |
system(qw(cp --preserve=timestamps), $rpm, "$repo/"); |
mkdir "$repo" unless -d "$repo"; |
236 |
} |
system(qw(cp --preserve=timestamps), $rpm, "$repo/"); |
237 |
|
} |
238 |
} |
} |
239 |
|
|
240 |
print "\n"; |
print "\n"; |
241 |
foreach my $rpm ( sort keys %{{ map { $_ => 1 } @remove }} ) { |
foreach my $rpm ( keys %{{ map { $_ => 1 } (@remove, map { $_->{rpm}->filename } grep { $_->{repo} eq 'deleted' } @rpms) }} ) { |
242 |
print "removing $rpm\n"; |
print "removing $rpm\n"; |
243 |
unlink $rpm; |
unlink $rpm; |
244 |
} |
} |
245 |
|
|
246 |
print "\n"; |
print "\n"; |
247 |
foreach my $repo ( sort keys %changed ) { |
foreach my $repo ( sort keys %changed ) { |
248 |
next if $repo =~ m{^/builds}; |
my $dir=`readlink -f $repo/$arch`; |
249 |
|
chomp $dir; |
250 |
print "rebuilding $repo/i386...\n"; |
print "rebuilding $dir...\n"; |
251 |
system(qw(createrepo), "$repo/i386"); |
system(qw(createrepo), "$dir"); |
252 |
system(qw(repoview), "$repo/i386"); |
system(qw(rm -rf), "$dir/.olddata") if -d "$dir/.olddata"; |
253 |
|
system(qw(repoview), "$dir"); |
254 |
|
system(qw(rm -rf), "$dir/.repodata") if "$dir/.repodata"; |
255 |
} |
} |