From 351942c71b80adaac614ed1c353d0e8e6f49ac8b Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 23 Mar 2011 11:03:35 -0500 Subject: Update doc/index.txt with 3.5.1 release date Signed-off-by: Dan McGee --- doc/index.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/index.txt b/doc/index.txt index 0d855bdf..a21cba18 100644 --- a/doc/index.txt +++ b/doc/index.txt @@ -63,6 +63,7 @@ Releases `------------`------- Date Version --------------------- +2011-03-23 v3.5.1 2011-03-16 v3.5.0 2011-01-22 v3.4.3 2010-12-29 v3.4.2 -- cgit v1.2.3 From e68e994eb2c32c4b7ad5288f8f4b8809e1c39c9b Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Thu, 24 Mar 2011 15:10:01 -0400 Subject: alpm/db: do not close local DB in alpm_db_unregister_all pacman 3.5.0 removed alpm_db_register_local, so calling alpm_db_unregister_all leaves the front end in a position where there's no local db, and no way to re-register it. Signed-off-by: Dave Reisner Signed-off-by: Dan McGee --- lib/libalpm/alpm.c | 9 +++++++++ lib/libalpm/db.c | 8 ++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c index 4f95832d..a60a4bb6 100644 --- a/lib/libalpm/alpm.c +++ b/lib/libalpm/alpm.c @@ -77,10 +77,19 @@ int SYMEXPORT alpm_initialize(void) */ int SYMEXPORT alpm_release(void) { + pmdb_t *db; + ALPM_LOG_FUNC; ASSERT(handle != NULL, RET_ERR(PM_ERR_HANDLE_NULL, -1)); + /* close local database */ + db = handle->db_local; + if(db) { + db->ops->unregister(db); + handle->db_local = NULL; + } + if(alpm_db_unregister_all() == -1) { return(-1); } diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c index fb64faed..bf6df06e 100644 --- a/lib/libalpm/db.c +++ b/lib/libalpm/db.c @@ -90,12 +90,8 @@ int SYMEXPORT alpm_db_unregister_all(void) /* Do not unregister a database if a transaction is on-going */ ASSERT(handle->trans == NULL, RET_ERR(PM_ERR_TRANS_NOT_NULL, -1)); - /* close local database */ - db = handle->db_local; - if(db) { - db->ops->unregister(db); - handle->db_local = NULL; - } + /* since the local DB is registered in alpm_initialize(), we'll be + * symmetrical and let the cleanup occur in alpm_release() */ /* and also sync ones */ for(i = handle->dbs_sync; i; i = i->next) { -- cgit v1.2.3 From 14474a32c90b2202f1faf69ea20abbcdedfe4c29 Mon Sep 17 00:00:00 2001 From: Jan Steffens Date: Thu, 24 Mar 2011 13:30:15 +0100 Subject: Make log redirection saner My main motivation was to remove the "sync", which can stall for minutes on a busy machine (FS#23378). I also cleaned up the redirection. Signed-off-by: Jan Steffens Signed-off-by: Allan McRae Signed-off-by: Dan McGee --- scripts/makepkg.sh.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index bb7616cf..eb7c3701 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -794,15 +794,15 @@ run_function() { # ensure overridden package variables survive tee with split packages logpipe=$(mktemp -u "$startdir/logpipe.XXXXXXXX") mkfifo "$logpipe" - exec 3>&1 tee "$BUILDLOG" < "$logpipe" & - exec 1>"$logpipe" 2>"$logpipe" + local teepid=$! + restoretrap=$(trap -p ERR) trap 'error_function $pkgfunc' ERR - $pkgfunc 2>&1 + $pkgfunc &>"$logpipe" eval $restoretrap - sync - exec 1>&3 2>&3 3>&- + + wait $teepid rm "$logpipe" else restoretrap=$(trap -p ERR) -- cgit v1.2.3 From c37c9c5dcae06c1585b4da4c0b838f5b44e1498e Mon Sep 17 00:00:00 2001 From: Ray Kohler Date: Thu, 24 Mar 2011 22:00:35 -0400 Subject: Add -T, --deptest to usage message Fixes FS #23369 Signed-off-by: Ray Kohler Signed-off-by: Dan McGee --- src/pacman/pacman.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index fc34f0e9..2847fd50 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -123,6 +123,7 @@ static void usage(int op, const char * const myname) printf(" %s {-Q --query} [%s] [%s]\n", myname, str_opt, str_pkg); printf(" %s {-R --remove} [%s] <%s>\n", myname, str_opt, str_pkg); printf(" %s {-S --sync} [%s] [%s]\n", myname, str_opt, str_pkg); + printf(" %s {-T --deptest} [%s] [%s]\n", myname, str_opt, str_pkg); printf(" %s {-U --upgrade} [%s] <%s>\n", myname, str_opt, str_file); printf(_("\nuse '%s {-h --help}' with an operation for available options\n"), myname); @@ -173,6 +174,9 @@ static void usage(int op, const char * const myname) printf("%s:\n", str_opt); addlist(_(" --asdeps mark packages as non-explicitly installed\n")); addlist(_(" --asexplicit mark packages as explicitly installed\n")); + } else if(op == PM_OP_DEPTEST) { + printf("%s: %s {-T --deptest} [%s] [%s]\n", str_usg, myname, str_opt, str_pkg); + printf("%s:\n", str_opt); } switch(op) { case PM_OP_SYNC: -- cgit v1.2.3