diff options
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; |