commit etc-update for openSUSE:Factory
![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community, here is the log from the commit of package etc-update for openSUSE:Factory checked in at 2018-04-30 22:57:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/etc-update (Old) and /work/SRC/openSUSE:Factory/.etc-update.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "etc-update" Mon Apr 30 22:57:35 2018 rev:6 rq:602474 version:2.3.31 Changes: -------- --- /work/SRC/openSUSE:Factory/etc-update/etc-update.changes 2018-04-27 16:08:36.051878450 +0200 +++ /work/SRC/openSUSE:Factory/.etc-update.new/etc-update.changes 2018-04-30 22:59:22.311512740 +0200 @@ -1,0 +2,7 @@ +Mon Apr 30 09:29:28 UTC 2018 - tchvatal@suse.com + +- Refresh etc-update-opensuse.patch to match for rpmnew files too. + Now it matched only rpmsave and rpmorig + * etc-update-opensuse.patch + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ etc-update-opensuse.patch ++++++ --- /var/tmp/diff_new_pack.GSgd61/_old 2018-04-30 22:59:22.943489680 +0200 +++ /var/tmp/diff_new_pack.GSgd61/_new 2018-04-30 22:59:22.943489680 +0200 @@ -2,7 +2,7 @@ =================================================================== --- portage-portage-2.3.31.orig/bin/etc-update +++ portage-portage-2.3.31/bin/etc-update -@@ -32,11 +32,12 @@ get_config() { +@@ -32,10 +32,11 @@ get_config() { "${PORTAGE_CONFIGROOT}"etc/etc-update.conf) } @@ -11,51 +11,47 @@ case $OS_RELEASE_ID in - suse|opensuse) OS_FAMILY='suse' NEW_EXT='rpmnew';; -- arch|manjaro|antergos) OS_FAMILY='arch' NEW_EXT='pacnew';; + suse|opensuse|opensuse-leap|opensuse-tumbleweed) OS_FAMILY='rpm' ;; + fedora|rhel) OS_FAMILY='rpm' ;; -+ arch|manjaro|antergos) OS_FAMILY='arch' ;; + arch|manjaro|antergos) OS_FAMILY='arch' NEW_EXT='pacnew';; *) OS_FAMILY='gentoo' ;; esac - -@@ -53,18 +54,32 @@ if [[ $OS_FAMILY == 'gentoo' ]]; then +@@ -53,7 +54,7 @@ if [[ $OS_FAMILY == 'gentoo' ]]; then get_live_file() { echo "${rpath}/${rfile:10}" } -elif [[ $OS_FAMILY == 'suse' ]] || [[ $OS_FAMILY == 'arch' ]]; then +elif [[ $OS_FAMILY == 'arch' ]]; then -+ get_basename() { -+ printf -- '%s\n' "${1%.pacnew}" -+ } -+ get_basename_find_opt() { -+ printf -- '%s\n' "${1}.pacnew" -+ } -+ get_scan_regexp() { -+ echo "s:\(^.*/\)\(.*\)\(\.pacnew\):\1\2\3$b\1$b\3$b\2:" -+ } -+ get_live_file() { -+ printf -- '%s\n' "${cfg_file%.pacnew}" -+ } -+# In rpm we have rpmsave rpmorig and rpmnew -+elif [[ $OS_FAMILY == 'rpm' ]]; then get_basename() { -- printf -- '%s\n' "${1%.${NEW_EXT}}" -+ printf -- '%s\n' "${1}" |sed -e 's/\.rpmsave$//' -e 's/\.rpmnew$//' -e 's/\.rpmorig$//' + printf -- '%s\n' "${1%.${NEW_EXT}}" } - get_basename_find_opt() { -- printf -- '%s\n' "${1}.${NEW_EXT}" -+ printf -- '%s\n' "${1}.rpm????" +@@ -61,11 +62,25 @@ elif [[ $OS_FAMILY == 'suse' ]] || [[ $O + printf -- '%s\n' "${1}.${NEW_EXT}" } get_scan_regexp() { - echo "s:\(^.*/\)\(.*\)\(\.rpmnew\):\1\2\3$b\1$b\3$b\2:" -+ echo "s:\(^.*/\)\(.*\)\(\.\(rpmnew|rpmsave|rpmorig\)\):\1\2\3$b\1$b\3$b\2:" ++ echo "s:\(^.*/\)\(.*\)\(\.${NEW_EXT}\):\1\2\3$b\1$b\3$b\2:" } get_live_file() { -- printf -- '%s\n' "${cfg_file%.${NEW_EXT}}" -+ printf -- '%s\n' "${cfg_file}" |sed -e 's/\.rpmsave$//' -e 's/\.rpmnew$//' -e 's/\.rpmorig$//' + printf -- '%s\n' "${cfg_file%.${NEW_EXT}}" } ++# In rpm we have rpmsave, rpmorig, and rpmnew. ++elif [[ $OS_FAMILY == 'rpm' ]]; then ++ get_basename() { ++ printf -- '%s\n' "${1}" |sed -e 's/\.rpmsave$//' -e 's/\.rpmnew$//' -e 's/\.rpmorig$//' ++ } ++ get_basename_find_opt() { ++ printf -- '%s\n' "${1}.rpm???*" ++ } ++ get_scan_regexp() { ++ echo "s:\(^.*/\)\(.*\)\(\.\(rpmnew|rpmsave|rpmorig\)\):\1\2\3$b\1$b\3$b\2:" ++ } ++ get_live_file() { ++ printf -- '%s\n' "${cfg_file}" |sed -e 's/\.rpmsave$//' -e 's/\.rpmnew$//' -e 's/\.rpmorig$//' ++ } fi + cmd_var_is_valid() { @@ -557,7 +572,7 @@ do_merge() { local file="${1}"
participants (1)
-
root@hilbert.suse.de