aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-12-01 16:14:17 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-12-01 16:14:17 +0000
commitf2a6550572f1d8b22ca3362dd3a395f393eae326 (patch)
tree3d09ad4d7df5440437dbdad18537b3b3ac6d7e10
parentbfb140cc7b0d7e4f6bc55ef1946af19fd273f99a (diff)
downloadperl-URPM-1.51.tar
perl-URPM-1.51.tar.gz
perl-URPM-1.51.tar.bz2
perl-URPM-1.51.tar.xz
perl-URPM-1.51.zip
rpmReadPackageFile() can return ok but no header :-/1.51
-rw-r--r--URPM.pm2
-rw-r--r--URPM.xs2
2 files changed, 2 insertions, 2 deletions
diff --git a/URPM.pm b/URPM.pm
index 77a7f9c..61da180 100644
--- a/URPM.pm
+++ b/URPM.pm
@@ -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);
diff --git a/URPM.xs b/URPM.xs
index 3edee4e..512ce12 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -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;