diff options
Diffstat (limited to 'genhdlist_cz2')
-rw-r--r-- | genhdlist_cz2 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/genhdlist_cz2 b/genhdlist_cz2 index de3e317..26791d0 100644 --- a/genhdlist_cz2 +++ b/genhdlist_cz2 @@ -41,6 +41,7 @@ while ($_ = readdir DIR) { my ($key) = /(.*)\..*\.rpm$/ or next; system("rpm2header $dir/$_ > $key") unless -e $key; $? == 0 or unlink($key), die "bad rpm $dir/$_\n"; + -z $key or unlink($key), die "bad rpm $dir/$_\n"; $keys{$key} = 1; } if (-e $depslist) { |