summaryrefslogtreecommitdiffstats
path: root/lib/libalpm
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-03-29 20:54:47 +0000
committerAurelien Foret <aurelien@archlinux.org>2005-03-29 20:54:47 +0000
commit23cd8d87cbf5cfa4e99fea0a802cbbf665828c84 (patch)
tree44814629fe33744211c6ba6a0554718449645a10 /lib/libalpm
parentcca46deb6f76a4b846555819b69ac9e22459dff6 (diff)
downloadpacman-23cd8d87cbf5cfa4e99fea0a802cbbf665828c84.tar.xz
put back 5 _alpm_log() calls
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/util.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c
index 73fed49f..29e39d30 100644
--- a/lib/libalpm/util.c
+++ b/lib/libalpm/util.c
@@ -369,7 +369,7 @@ int _alpm_runscriptlet(char *root, char *installfn, char *script, char *ver, cha
}
snprintf(tmpdir, PATH_MAX, "%stmp/pacman-XXXXXX", root);
if(mkdtemp(tmpdir) == NULL) {
- perror("error creating temp directory");
+ _alpm_log(PM_LOG_ERROR, "could not create temp directory");
return(1);
}
_alpm_unpack(installfn, tmpdir, ".INSTALL");
@@ -386,14 +386,12 @@ int _alpm_runscriptlet(char *root, char *installfn, char *script, char *ver, cha
if(!_alpm_grep(scriptfn, script)) {
/* script not found in scriptlet file */
if(strlen(tmpdir) && _alpm_rmrf(tmpdir)) {
- /* ORE
- _alpm_log(PM_LOG_WARNING, "could not remove tmpdir %s", tmpdir);*/
+ _alpm_log(PM_LOG_WARNING, "could not remove tmpdir %s", tmpdir);
}
return(0);
}
- /* ORE
- _alpm_log(PM_LOG_FLOW2, "Executing %s script...", script);*/
+ _alpm_log(PM_LOG_FLOW2, "executing %s script...", script);
if(oldver) {
snprintf(cmdline, PATH_MAX, "echo \"umask 0022; source %s %s %s %s\" | chroot %s /bin/sh",
scriptpath, script, ver, oldver, root);
@@ -401,13 +399,11 @@ int _alpm_runscriptlet(char *root, char *installfn, char *script, char *ver, cha
snprintf(cmdline, PATH_MAX, "echo \"umask 0022; source %s %s %s\" | chroot %s /bin/sh",
scriptpath, script, ver, root);
}
- /* ORE
- _alpm_log(PM_LOG_FLOW2, "%s", cmdline);*/
+ _alpm_log(PM_LOG_FLOW2, "%s", cmdline);
system(cmdline);
if(strlen(tmpdir) && _alpm_rmrf(tmpdir)) {
- /* ORE
- _alpm_log(PM_LOG_WARNING, "could not remove tmpdir %s", tmpdir);*/
+ _alpm_log(PM_LOG_WARNING, "could not remove tmpdir %s", tmpdir);
}
return(0);
}