summaryrefslogtreecommitdiff
path: root/lib/rpminstall.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-10-26 14:43:43 +0000
committerjbj <devnull@localhost>2002-10-26 14:43:43 +0000
commite99358b753e1f8b12474e0b15097af79bf49cc8c (patch)
tree6a879110e5c874bfae98800a68422c436482baaf /lib/rpminstall.c
parent76cc00093491cab018afbdfe74cee7676159cd70 (diff)
downloadlibrpm-tizen-e99358b753e1f8b12474e0b15097af79bf49cc8c.tar.gz
librpm-tizen-e99358b753e1f8b12474e0b15097af79bf49cc8c.tar.bz2
librpm-tizen-e99358b753e1f8b12474e0b15097af79bf49cc8c.zip
- fix: permit build with --disable-nls (#76258).
- add error message on glob failure (#76012). CVS patchset: 5821 CVS date: 2002/10/26 14:43:43
Diffstat (limited to 'lib/rpminstall.c')
-rw-r--r--lib/rpminstall.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/rpminstall.c b/lib/rpminstall.c
index 3995c0256..75ee05304 100644
--- a/lib/rpminstall.c
+++ b/lib/rpminstall.c
@@ -339,7 +339,10 @@ int rpmInstall(rpmts ts,
/*@=temptrans@*/
av = _free(av); ac = 0;
rc = rpmGlob(*eiu->fnp, &ac, &av);
- if (rc || ac == 0) continue;
+ if (rc || ac == 0) {
+ rpmError(RPMERR_OPEN, _("File not found by glob: %s\n"), *eiu->fnp);
+ continue;
+ }
eiu->argv = xrealloc(eiu->argv, (eiu->argc+ac+1) * sizeof(*eiu->argv));
memcpy(eiu->argv+eiu->argc, av, ac * sizeof(*av));