diff options
author | Dan McGee <dan@archlinux.org> | 2007-11-18 11:23:10 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-11-18 12:37:29 -0600 |
commit | 5f0c241987f31b2cbf1c6ba2146dcca065973b0d (patch) | |
tree | 34297a64f85f113027a7f72f39a281b7eeb2e86b | |
parent | b118ce55bd01c7ebd42b5b6d4a0f34aa925701d8 (diff) | |
download | pacman-5f0c241987f31b2cbf1c6ba2146dcca065973b0d.tar.xz |
POSIX shell does not specify meaning of source operation
Just use '.' operator instead. Oops.
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | lib/libalpm/trans.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/trans.c b/lib/libalpm/trans.c index 7e3cb60e..50e346d9 100644 --- a/lib/libalpm/trans.c +++ b/lib/libalpm/trans.c @@ -538,10 +538,10 @@ int _alpm_runscriptlet(const char *root, const char *installfn, _alpm_log(PM_LOG_DEBUG, "executing %s script...\n", script); if(oldver) { - snprintf(cmdline, PATH_MAX, "source %s %s %s %s", + snprintf(cmdline, PATH_MAX, ". %s %s %s %s", scriptpath, script, ver, oldver); } else { - snprintf(cmdline, PATH_MAX, "source %s %s %s", + snprintf(cmdline, PATH_MAX, ". %s %s %s", scriptpath, script, ver); } _alpm_log(PM_LOG_DEBUG, "%s\n", cmdline); |