Fixed md5 on source packages.
authormarc <devnull@localhost>
Tue, 26 Aug 1997 16:36:30 +0000 (16:36 +0000)
committermarc <devnull@localhost>
Tue, 26 Aug 1997 16:36:30 +0000 (16:36 +0000)
CVS patchset: 1802
CVS date: 1997/08/26 16:36:30

build/files.c

index 0e49eab..c7214f9 100644 (file)
@@ -419,7 +419,8 @@ int process_filelist(Header header, struct PackageRec *pr,
            fileGnameList[c] = fest->gname;
            *size += fest->statbuf.st_size;
            if (S_ISREG(fest->statbuf.st_mode)) {
-               if (rpmGetVar(RPMVAR_ROOT)) {
+               if ((type == RPMLEAD_BINARY) &&
+                   rpmGetVar(RPMVAR_ROOT)) {
                    sprintf(buf, "%s%s", rpmGetVar(RPMVAR_ROOT), fest->file);
                } else {
                    strcpy(buf, fest->file);