From 1f7ddcbf136e7329500b7620e3d73ca57a7aead7 Mon Sep 17 00:00:00 2001 From: Davide Madrisan Date: Sat, 17 Mar 2012 23:47:03 +0100 Subject: [PATCH] pck-update (-a5): new option "--list-check" for simply running "rpmbuild -bl" instead of building packages Signed-off-by: Davide Madrisan --- ChangeLog | 9 +++++++++ plugins/pck-update.in | 13 ++++++++++++- po/it/pck-update.po | 3 +++ 3 files changed, 24 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6a82839..c9c9b42 100644 --- a/ChangeLog +++ b/ChangeLog @@ -31,6 +31,15 @@ Changes in version 1.9.3 treat errors as warnings in autospec and not to stop the script execution. (Problem detected by Silvan Calarco.) ++ update + * pck-update - Davide Madrisan: + Action 5: new option "--list-check" for simply running "rpmbuild -bl" and + displaying the list of unpackaged files. + (Feature asked by Silvan Calarco.) + + * i18n - Davide Madrisan: + Updated. + -------------------------------------------------------------------------------- Changes in version 1.9.2 diff --git a/plugins/pck-update.in b/plugins/pck-update.in index a77e222..96451f9 100644 --- a/plugins/pck-update.in +++ b/plugins/pck-update.in @@ -51,6 +51,8 @@ let "logging = 0" let "nosrpm = 0" # do upload rpms packages let "norpms = 0" +# do a "list check" +let "list_check = 0" # do not use rpm variables for unix tools let "format_unix_tools = 0" @@ -136,6 +138,7 @@ function usage() { "$"action"" 10: "$"Do not upload the srpm package"" --norpm "$"action"" 5: "$"Only build the srpm package"" "$"action"" 10: "$"Do not upload the rpm packages"" + --list-check "$"action"" 5: "$"Do a \"list check\""" -c, --clear "$"Remove all the temporary files except (s)rpm packages"" -f, --format "$"Enable specfile autoformatting"" -L, --log "$"Unable logging to file (logging dir: \`\$logging_dir')"" @@ -186,7 +189,7 @@ exec_options=`LC_ALL=C getopt \ --long \ update,action:,define:,login:,specfile:,arch:,\ server-download:,server-upload:,server:,\ -changelog:,nosrpm,norpm,\ +changelog:,nosrpm,norpm,list-check,\ force-update,force-build,force-install,force-download,force,\ ignore-test:,clear,format,log,rebuild,root:,\ debug,quiet,colorize,help,version,\ @@ -234,6 +237,8 @@ while :; do let "nosrpm = 1" ;; --norpm) let "norpms = 1" ;; + --list-check) + let "list_check = 1" ;; --force-update) let "force_update = 1" ;; --force-build) @@ -2263,6 +2268,12 @@ specfile is newer than srpm (according to modification date)" if [[ "$norpms" = 1 && "$nosrpm" = 1 ]]; then : + elif [ "$list_check" = 1 ]; then + notify.note \ +"${NOTE}"$"checking for unpackaged files""${NORM}..." + eval "\ +rpmbuild -bl $rpmbuild_opts --nodeps \ +$SRPM_SPECFILE_WITH_PATH $USER_RPMDEFINE_OPTS 2>&1" elif [ "$norpms" = 1 ]; then notify.note "${NOTE}"$"building the srpm package""${NORM}..." # as the dependencies check is done before, it is safe to pass diff --git a/po/it/pck-update.po b/po/it/pck-update.po index 7bb8dca..a25f386 100644 --- a/po/it/pck-update.po +++ b/po/it/pck-update.po @@ -420,6 +420,9 @@ msgstr "creazione del pacchetto srpm" msgid "specfile is newer than srpm (according to modification date)" msgstr "lo specfile è più recente del file srpm" +msgid "checking for unpackaged files" +msgstr "ricerca di file non inseriti nei blocchi %files" + msgid "build requirement found" msgstr "trovato build requirement"