commit:     06387dc2f36ac77455bef31b3925fe3810e24482
Author:     Tomáš Chvátal <tomas.chvatal <AT> gmail <DOT> com>
AuthorDate: Thu Apr 26 18:03:19 2018 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Thu Apr 26 18:03:19 2018 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=06387dc2

etc-update: fix get_scan_regexp for arch OS_FAMILY

 bin/etc-update | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/etc-update b/bin/etc-update
index 8b3604a4c..720bd83d3 100755
--- a/bin/etc-update
+++ b/bin/etc-update
@@ -62,7 +62,7 @@ elif [[ $OS_FAMILY == 'arch' ]]; then
                printf -- '%s\n' "${1}.${NEW_EXT}"
        }
        get_scan_regexp() {
-               echo "s:\(^.*/\)\(.*\)\(\.rpmnew\):\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}}"

Reply via email to