Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 481132 - etc-update doesn't ask for confirmation on last file
Summary: etc-update doesn't ask for confirmation on last file
Status: RESOLVED OBSOLETE
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-15 08:25 UTC by jannis
Modified: 2020-09-30 12:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (einfo,16.13 KB, text/plain)
2013-08-15 08:26 UTC, jannis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jannis 2013-08-15 08:25:12 UTC
etc-update asks for confirmation (mv -i ?) for every file but for the last one, it overwrites w/o asking for confirmation:

The following is the list of files which need updating, each
configuration file is followed by a list of possible replacement files.
3) /etc/portage/make.conf (1)
4) /etc/portage/repos.conf/gentoo.conf (1)
Please select a file to edit by entering the corresponding number.
              (don't use -3, -5, -7 or -9 if you're unsure what to do)
              (-1 to exit) (-3 to auto merge all files)
                           (-5 to auto-merge AND not use 'mv -i')
                           (-7 to discard all updates)
                           (-9 to discard all updates AND not use 'rm -i'): 

Showing differences between /etc/portage/make.conf and /etc/portage/._cfg0000_make.conf
--- /etc/portage/make.conf      2013-05-26 11:23:24.585400201 +0000
+++ /etc/portage/._cfg0000_make.conf    2013-08-14 23:00:15.894593898 +0000
@@ -33,3 +33,9 @@
 PHP_INI_VERSION="production"
                                                                                                                                                                                                                                                                                
 #source /var/lib/layman/make.conf
+
+# Set PORTDIR for backward compatibility with various tools:
+#   gentoo-bashcomp - bug #478444
+#   euse - bug #474574
+#   euses and ufed - bug #478318
+PORTDIR="/usr/portage"

File: /etc/portage/._cfg0000_make.conf
1) Replace original with update
2) Delete update, keeping original as is
3) Interactively merge original with update
4) Show differences again
5) Save update as example config
Please select from the menu above (-1 to ignore this update): 1
Replacing /etc/portage/make.conf with /etc/portage/._cfg0000_make.conf
mv: overwrite '/etc/portage/make.conf'? y

The following is the list of files which need updating, each
configuration file is followed by a list of possible replacement files.
4) /etc/portage/repos.conf/gentoo.conf (1)
Please select a file to edit by entering the corresponding number.
              (don't use -3, -5, -7 or -9 if you're unsure what to do)
              (-1 to exit) (-3 to auto merge all files)
                           (-5 to auto-merge AND not use 'mv -i')
                           (-7 to discard all updates)
                           (-9 to discard all updates AND not use 'rm -i'): 

Showing differences between /etc/portage/repos.conf/gentoo.conf and /etc/portage/repos.conf/._cfg0000_gentoo.conf
--- /etc/portage/repos.conf/gentoo.conf 1970-01-01 00:00:00.000000000 +0000
+++ /etc/portage/repos.conf/._cfg0000_gentoo.conf       2013-08-14 23:00:15.862593898 +0000
@@ -0,0 +1,7 @@
+[DEFAULT]
+main-repo = gentoo
+
+[gentoo]
+location = /usr/portage
+sync-type = rsync
+sync-uri = rsync://rsync.gentoo.org/gentoo-portage

File: /etc/portage/repos.conf/._cfg0000_gentoo.conf
1) Replace original with update
2) Delete update, keeping original as is
3) Interactively merge original with update
4) Show differences again
5) Save update as example config
Please select from the menu above (-1 to ignore this update): 1
Replacing /etc/portage/repos.conf/gentoo.conf with /etc/portage/repos.conf/._cfg0000_gentoo.conf

Exiting: Nothing left to do; exiting. :)

Reproducible: Always
Comment 1 jannis 2013-08-15 08:26:05 UTC
Created attachment 356058 [details]
emerge --info
Comment 2 Zac Medico gentoo-dev 2013-08-16 21:21:23 UTC
It looks like the issue may be that the parse_automode_flag function is called, which can remove -i from mv_opts, and then -i is never added back to mv_opts.
Comment 3 jannis 2013-10-02 17:56:36 UTC
Am I the only one hitting this? No one else in CC?
I've jut hit this again (twice) when setting up new boards running ~arm
Comment 4 jannis 2020-09-30 12:14:19 UTC
No longer able to reproduce - closing as OBSOLETE