diff options
-rw-r--r-- | URPM.pm | 2 | ||||
-rw-r--r-- | URPM.xs | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -10,7 +10,7 @@ use URPM::Resolve; use URPM::Signature; our @ISA = qw(DynaLoader); -our $VERSION = '1.50'; +our $VERSION = '1.51'; URPM->bootstrap($VERSION); @@ -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; |