CreatePackageDescr: detect corrupt cache file and rebuild.
This commit is contained in:
parent
0309dfe0cf
commit
a30ae36ed4
@ -24,7 +24,15 @@ sub package_snippet($) {
|
||||
$out .= $_;
|
||||
}
|
||||
close(C);
|
||||
return $out;
|
||||
|
||||
# Detect corrupt cache file and rebuild.
|
||||
if ($out =~ m/=Pkg: /) {
|
||||
unlink($cachefile);
|
||||
$out = '';
|
||||
}
|
||||
else {
|
||||
return $out;
|
||||
}
|
||||
}
|
||||
|
||||
# RPMTAG_FILEMODES = 1030, /* h[] */
|
||||
|
Loading…
x
Reference in New Issue
Block a user