diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2006-12-01 16:14:17 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2006-12-01 16:14:17 +0000 |
commit | f2a6550572f1d8b22ca3362dd3a395f393eae326 (patch) | |
tree | 3d09ad4d7df5440437dbdad18537b3b3ac6d7e10 /URPM.xs | |
parent | bfb140cc7b0d7e4f6bc55ef1946af19fd273f99a (diff) | |
download | perl-URPM-f2a6550572f1d8b22ca3362dd3a395f393eae326.tar perl-URPM-f2a6550572f1d8b22ca3362dd3a395f393eae326.tar.gz perl-URPM-f2a6550572f1d8b22ca3362dd3a395f393eae326.tar.bz2 perl-URPM-f2a6550572f1d8b22ca3362dd3a395f393eae326.tar.xz perl-URPM-f2a6550572f1d8b22ca3362dd3a395f393eae326.zip |
rpmReadPackageFile() can return ok but no header :-/1.51
Diffstat (limited to 'URPM.xs')
-rw-r--r-- | URPM.xs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1031,7 +1031,7 @@ update_header(char *filename, URPM__Package pkg, int keep_all_tags, int vsflags) close(d); ts = rpmtsCreate(); rpmtsSetVSFlags(ts, _RPMVSF_NOSIGNATURES | vsflags); - if (fd != NULL && rpmReadPackageFile(ts, fd, filename, &header) == 0) { + if (fd != NULL && rpmReadPackageFile(ts, fd, filename, &header) == 0 && header) { struct stat sb; char *basename; int_32 size; |