diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2006-11-17 16:42:43 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2006-11-17 16:42:43 +0000 |
commit | ea35868de9cad3cb07c5ff1f0a2f1776f54be5a1 (patch) | |
tree | 9b766cfddc42651a7ecf9fbb747b264abce79269 | |
parent | 6111ce37d4a132972730ee29525d246000c28311 (diff) | |
download | perl-URPM-ea35868de9cad3cb07c5ff1f0a2f1776f54be5a1.tar perl-URPM-ea35868de9cad3cb07c5ff1f0a2f1776f54be5a1.tar.gz perl-URPM-ea35868de9cad3cb07c5ff1f0a2f1776f54be5a1.tar.bz2 perl-URPM-ea35868de9cad3cb07c5ff1f0a2f1776f54be5a1.tar.xz perl-URPM-ea35868de9cad3cb07c5ff1f0a2f1776f54be5a1.zip |
at least one good header is needed for non compressed hdlist and non empty file
-rw-r--r-- | URPM.xs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -3157,6 +3157,8 @@ Urpm_parse_hdlist__XS(urpm, filename, ...) int rc = waitpid(pid, &status, 0); ok = rc != -1 && WEXITSTATUS(status) != 1; /* in our standard case, gzip will exit with status code 2, meaning "decompression OK, trailing garbage ignored" */ pid = 0; + } else if (!empty_archive) { + ok = av_len(depslist) >= start_id; } SPAGAIN; if (ok) { |