summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2000-01-05 19:46:45 +0000
committerjbj <devnull@localhost>2000-01-05 19:46:45 +0000
commit98dd6f2c02a0c7d4d56b7793324fb41bad295946 (patch)
tree9d7aeed98ea256fa4d8e57fca49f48f3a1b73aff /build
parent8d76e5e019c15c43c91e23fe5e878dcce7ff0ada (diff)
downloadrpm-98dd6f2c02a0c7d4d56b7793324fb41bad295946.tar.gz
rpm-98dd6f2c02a0c7d4d56b7793324fb41bad295946.tar.bz2
rpm-98dd6f2c02a0c7d4d56b7793324fb41bad295946.zip
resurrect failed glob error message during build
CVS patchset: 3509 CVS date: 2000/01/05 19:46:45
Diffstat (limited to 'build')
-rw-r--r--build/files.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/build/files.c b/build/files.c
index 4278521aa..a87607787 100644
--- a/build/files.c
+++ b/build/files.c
@@ -1105,12 +1105,15 @@ fprintf(stderr, "*** PBF fileURL %s\n", fileURL);
int i;
rc = rpmGlob(diskURL, &argc, &argv);
- if (rc == 0) {
+ if (rc == 0 && argc >= 1 && !myGlobPatternP(argv[0])) {
for (i = 0; i < argc; i++) {
rc = addFile(fl, argv[i], NULL);
xfree(argv[i]);
}
xfree(argv);
+ } else {
+ rpmError(RPMERR_BADSPEC, _("File not found by glob: %s"), diskURL);
+ rc = 1;
}
} else {
rc = addFile(fl, diskURL, NULL);