diff options
author | ewt <devnull@localhost> | 1996-03-29 19:39:56 +0000 |
---|---|---|
committer | ewt <devnull@localhost> | 1996-03-29 19:39:56 +0000 |
commit | db3e2a06f82647515beb3ec9a2aa1fb22d637ddf (patch) | |
tree | 1fbfe4cc12a3639474e39cb79942a363b51c5ef0 /lib | |
parent | 29269c7429a9ff2dea3e5981023eca5bf83a0701 (diff) | |
download | rpm-db3e2a06f82647515beb3ec9a2aa1fb22d637ddf.tar.gz rpm-db3e2a06f82647515beb3ec9a2aa1fb22d637ddf.tar.bz2 rpm-db3e2a06f82647515beb3ec9a2aa1fb22d637ddf.zip |
returns a null header for old style source packages
CVS patchset: 499
CVS date: 1996/03/29 19:39:56
Diffstat (limited to 'lib')
-rw-r--r-- | lib/package.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/package.c b/lib/package.c index 7aaecee43..b163c464e 100644 --- a/lib/package.c +++ b/lib/package.c @@ -48,6 +48,12 @@ int pkgReadHeader(int fd, Header * hdr, int * isSource) { message(MESS_DEBUG, "archvie offset is %d\n", oldLead->archiveOffset); lseek(fd, oldLead->archiveOffset, SEEK_SET); + + /* we can't put togeher a header for old format source packages, + there just isn't enough information there. We'll return + NULL <gulp> */ + + *hdr = NULL; } else { if (!readSignature(fd, lead.signature_type, NULL)) { return 2; |