From 45fe92bf39a193252d0fc5e44526877002297659 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Wed, 8 Jun 2011 15:34:47 +1000 Subject: Remove incorrect output with download only and IgnorePkg When only downloading a package that is in IgnorePkg, pacman incorrectly asks about installing. e.g. with in IgnorePkg in pacman.conf: > pacman -Sddw :: is in IgnorePkg/IgnoreGroup. Install anyway? [Y/n] This output is now silenced when downloading only. Signed-off-by: Allan McRae --- src/pacman/callback.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pacman/callback.c b/src/pacman/callback.c index f1c314f0..4a025742 100644 --- a/src/pacman/callback.c +++ b/src/pacman/callback.c @@ -256,8 +256,12 @@ void cb_trans_conv(pmtransconv_t event, void *data1, void *data2, { switch(event) { case PM_TRANS_CONV_INSTALL_IGNOREPKG: - *response = yesno(_(":: %s is in IgnorePkg/IgnoreGroup. Install anyway?"), - alpm_pkg_get_name(data1)); + if(!config->op_s_downloadonly) { + *response = yesno(_(":: %s is in IgnorePkg/IgnoreGroup. Install anyway?"), + alpm_pkg_get_name(data1)); + } else { + *response = 1; + } break; case PM_TRANS_CONV_REPLACE_PKG: *response = yesno(_(":: Replace %s with %s/%s?"), -- cgit v1.2.3-70-g09d2 From 80b024d56ae61902025983470e93893d76109ac4 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Wed, 8 Jun 2011 16:44:38 +1000 Subject: pkgdelta: add vim modeline Signed-off-by: Allan McRae --- scripts/pkgdelta.sh.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/pkgdelta.sh.in b/scripts/pkgdelta.sh.in index ecca4277..d17b41d2 100644 --- a/scripts/pkgdelta.sh.in +++ b/scripts/pkgdelta.sh.in @@ -163,3 +163,5 @@ if ! type xdelta3 &>/dev/null; then fi create_xdelta "$1" "$2" + +# vim: set ts=2 sw=2 noet: -- cgit v1.2.3-70-g09d2 From 361b6a9403c9b87521ec3e1df64b6fe95fe52d7d Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Wed, 8 Jun 2011 16:48:56 +1000 Subject: pacman-key: add vim modeline and fix whitespace issues Signed-off-by: Allan McRae --- scripts/pacman-key.sh.in | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/scripts/pacman-key.sh.in b/scripts/pacman-key.sh.in index 80f8bc7c..20ec20fa 100644 --- a/scripts/pacman-key.sh.in +++ b/scripts/pacman-key.sh.in @@ -87,12 +87,12 @@ There is NO WARRANTY, to the extent permitted by law.\n")" # 'key', 'equal sign' and 'value' can be surrounded by random whitespace # Usage: get_from "$file" "$key" # returns the value for the first matching key in the file get_from() { - while read key _ value; do - if [[ $key = $2 ]]; then - echo "$value" - break - fi - done < "$1" + while read key _ value; do + if [[ $key = $2 ]]; then + echo "$value" + break + fi + done < "$1" } reload_keyring() { @@ -328,3 +328,5 @@ case "${command}" in error "$(gettext "Unknown command:") $command" usage; exit 1 ;; esac + +# vim: set ts=2 sw=2 noet: -- cgit v1.2.3-70-g09d2 From 87072ff63907ce6040be7e59b9b07fd891a8254a Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Wed, 8 Jun 2011 17:36:03 +1000 Subject: Fix name of original files in scripts Our scripts all currently say: Generated from foo.in; do not edit by hand. Fix this to say foo.sh.in, which is the actual original file name. Signed-off-by: Allan McRae --- scripts/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.am b/scripts/Makefile.am index 7c64e81c..fd9b20d1 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -47,7 +47,7 @@ edit = sed \ -e 's|@SIZECMD[@]|$(SIZECMD)|g' \ -e 's|@SEDINPLACE[@]|$(SEDINPLACE)|g' \ -e 's|@DUPATH[@]|$(DUPATH)|g' \ - -e 's|@configure_input[@]|Generated from $@.in; do not edit by hand.|g' + -e 's|@configure_input[@]|Generated from $@.sh.in; do not edit by hand.|g' ## All the scripts depend on Makefile so that they are rebuilt when the ## prefix etc. changes. Use chmod -w to prevent people from editing the -- cgit v1.2.3-70-g09d2