Skip to content

Commit

Permalink
createrepomddeps: zypp mode: do not insist on a size if there is none
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Dec 8, 2017
1 parent 2622cfb commit 9cfbfb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion createrepomddeps
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ for my $url (@ARGV) {
if (-e $u) {
$cached = 1;
$cached = 0 if exists($f->{'size'}) && $f->{'size'} != (-s _);
$cached = 0 if !exists($f->{'size'}) && $u !~ /[0-9a-f]{32}-primary/;
$cached = 0 if !$opt_zypp && !exists($f->{'size'}) && $u !~ /[0-9a-f]{32}-primary/;
}
if (!$cached) {
die("zypp repo $url is not up to date, please refresh first\n") if $opt_zypp;
Expand Down

0 comments on commit 9cfbfb5

Please sign in to comment.