aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-17 16:42:43 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-17 16:42:43 +0000
commitea35868de9cad3cb07c5ff1f0a2f1776f54be5a1 (patch)
tree9b766cfddc42651a7ecf9fbb747b264abce79269 /URPM.xs
parent6111ce37d4a132972730ee29525d246000c28311 (diff)
downloadperl-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
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs2
1 files changed, 2 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index c5e8b10..a3a7684 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -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) {