summaryrefslogtreecommitdiff
path: root/rpm.c
diff options
context:
space:
mode:
authorewt <devnull@localhost>1999-04-06 19:08:27 +0000
committerewt <devnull@localhost>1999-04-06 19:08:27 +0000
commit7184a3a632349b6c5171347e2203f4d9912c1037 (patch)
tree780d0a0eb175c30497657c864ae6d7192ae366e2 /rpm.c
parentc06d64a88cf2b921854607d465493887bcf8f0fb (diff)
downloadlibrpm-tizen-7184a3a632349b6c5171347e2203f4d9912c1037.tar.gz
librpm-tizen-7184a3a632349b6c5171347e2203f4d9912c1037.tar.bz2
librpm-tizen-7184a3a632349b6c5171347e2203f4d9912c1037.zip
1) fixed --prefix
2) got RPM_INSTALL_PREFIX env variables set properly CVS patchset: 2953 CVS date: 1999/04/06 19:08:27
Diffstat (limited to 'rpm.c')
-rwxr-xr-xrpm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/rpm.c b/rpm.c
index cd31d4089..9cdb897f7 100755
--- a/rpm.c
+++ b/rpm.c
@@ -830,8 +830,11 @@ int main(int argc, char ** argv) {
rpmDefineMacro(NULL, optArg, RMIL_CMDLINE);
break;
- case GETOPT_PREFIX: /* XXX FIXME */
- argerror(_("--prefix is broke, use --relocate /oldpath=/newpath instead"));
+ case GETOPT_PREFIX:
+ relocations = realloc(relocations,
+ sizeof(*relocations) * (numRelocations + 1));
+ relocations[numRelocations].oldPath = NULL;
+ relocations[numRelocations++].newPath = optArg;
break;
case GETOPT_TIMECHECK: