summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/pack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/pack.c b/build/pack.c
index d4f8ec2ec..5fbca42c4 100644
--- a/build/pack.c
+++ b/build/pack.c
@@ -39,7 +39,7 @@ static int rpmPackageFilesArchive(rpmfiles fi, int isSrc,
rfd = Fopen(path, "r.ufdio");
if (Ferror(rfd)) {
- rc = CPIOERR_OPEN_FAILED;
+ rc = RPMERR_OPEN_FAILED;
} else {
rc = rpmfiArchiveWriteFile(archive, rfd);
}
@@ -54,7 +54,7 @@ static int rpmPackageFilesArchive(rpmfiles fi, int isSrc,
}
}
- if (rc == CPIOERR_HDR_TRAILER)
+ if (rc == RPMERR_ITER_END)
rc = 0;
if (archiveSize)