returns a null header for old style source packages
authorewt <devnull@localhost>
Fri, 29 Mar 1996 19:39:56 +0000 (19:39 +0000)
committerewt <devnull@localhost>
Fri, 29 Mar 1996 19:39:56 +0000 (19:39 +0000)
CVS patchset: 499
CVS date: 1996/03/29 19:39:56

lib/package.c

index 7aaecee..b163c46 100644 (file)
@@ -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;