diff options
author | ewt <devnull@localhost> | 1999-04-06 19:08:27 +0000 |
---|---|---|
committer | ewt <devnull@localhost> | 1999-04-06 19:08:27 +0000 |
commit | 7184a3a632349b6c5171347e2203f4d9912c1037 (patch) | |
tree | 780d0a0eb175c30497657c864ae6d7192ae366e2 /rpm.c | |
parent | c06d64a88cf2b921854607d465493887bcf8f0fb (diff) | |
download | librpm-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-x | rpm.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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: |