Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180630 - app-portage/autounmask-0.20: -p changes /etc/portage/* files instead of on "pretend"
Summary: app-portage/autounmask-0.20: -p changes /etc/portage/* files instead of on "p...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Christian Hartmann (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-02 11:34 UTC by Pacho Ramos
Modified: 2007-06-03 09:39 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2007-06-02 11:34:06 UTC
I have run:
# autounmask -p mail-client/evolution-2.10.1

 autounmask version 0.20 (using PortageXS-0.02.07)
 Bugs and requests go to ian <ian@gentoo.org>.

 * Using repositories:
     /usr/portage
     /usr/portage/local/layman/musicbrainz
     /usr/portage/local/layman/sunrise
     /usr/local/portage

 * Using package.keywords file: /etc/portage/package.keywords
 * Using package.unmask file: /etc/portage/package.unmask

 * Unmasking mail-client/evolution-2.10.1 and its dependencies.. this might
   take a while..

 * Added '=mail-client/evolution-2.10.1' to /etc/portage/package.unmask
 * Added '=gnome-extra/gtkhtml-3.14.0 ~amd64' to
   /etc/portage/package.keywords
 * Added '=gnome-extra/gtkhtml-3.14.0' to /etc/portage/package.unmask
 * Added '=gnome-extra/gtkhtml-3.14.1 ~amd64' to
   /etc/portage/package.keywords
 * Added '=gnome-extra/gtkhtml-3.14.1' to /etc/portage/package.unmask
 * Added '=x11-libs/pango-1.16.1 ~amd64' to /etc/portage/package.keywords
 * Added '=x11-libs/pango-1.16.1' to /etc/portage/package.unmask
 * Added '=x11-libs/pango-1.16.3 ~amd64' to /etc/portage/package.keywords
 * Added '=x11-libs/pango-1.16.3' to /etc/portage/package.unmask
 * Added '=x11-libs/pango-1.16.2 ~amd64' to /etc/portage/package.keywords
 * Added '=x11-libs/pango-1.16.2' to /etc/portage/package.unmask
 * Added '=gnome-extra/evolution-data-server-1.10.1-r2' to
 /etc/portage/package.unmask


And /etc/portage/package.keywords and package.unmask have been modified

Thanks

Reproducible: Always



Expected Results:  
When autounmask is run with -p option, only info about what packages would unmask should be shown, /etc/portage files shouldn't be touched
Comment 1 Christian Hartmann (RETIRED) gentoo-dev 2007-06-02 18:12:53 UTC
ea ~ (0) # md5sum /etc/portage/package.{keywords,unmask}
62b0238c915f9d783211cda9220ccfeb  /etc/portage/package.keywords
7eb4cd1a075a9bd6b263ceeac68bad26  /etc/portage/package.unmask
ea ~ (0) # autounmask -p mail-client/evolution-2.10.1

 autounmask version 0.20 (using PortageXS-0.02.07)
 Bugs and requests go to ian <ian@gentoo.org>.

 * Using repositories:
     /usr/portage
     /home/ian/my_development/gentoo/gentoo-x86

 * Using package.keywords file: /etc/portage/package.keywords
 * Using package.unmask file: /etc/portage/package.unmask

 * Unmasking mail-client/evolution-2.10.1 and its dependencies.. this might take a while..

 * Added '=mail-client/evolution-2.10.1 ~x86' to /etc/portage/package.keywords
 * Added '=mail-client/evolution-2.10.1' to /etc/portage/package.unmask
 * Added '=gnome-extra/gtkhtml-3.14.0' to /etc/portage/package.unmask
 * Added '=gnome-extra/gtkhtml-3.14.1' to /etc/portage/package.unmask
 * Added '=x11-libs/pango-1.16.1 ~x86' to /etc/portage/package.keywords
 * Added '=x11-libs/pango-1.16.1' to /etc/portage/package.unmask
 * Added '=x11-libs/pango-1.16.3 ~x86' to /etc/portage/package.keywords
 * Added '=x11-libs/pango-1.16.3' to /etc/portage/package.unmask
 * Added '=x11-libs/pango-1.16.2 ~x86' to /etc/portage/package.keywords
 * Added '=x11-libs/pango-1.16.2' to /etc/portage/package.unmask
 * Added '=gnome-extra/evolution-data-server-1.10.1-r2 ~x86' to /etc/portage/package.keywords
 * Added '=gnome-extra/evolution-data-server-1.10.1-r2' to /etc/portage/package.unmask
 * Added '=app-text/gnome-doc-utils-0.10.3 ~x86' to /etc/portage/package.keywords
 * Added '=app-text/gnome-doc-utils-0.10.3' to /etc/portage/package.unmask
 * Added '=app-text/gnome-doc-utils-0.10.1 ~x86' to /etc/portage/package.keywords
 * Added '=app-text/gnome-doc-utils-0.10.1' to /etc/portage/package.unmask
 * Restoring files because autounmask was called with the --pretend option.
 * done!

ea ~ (0) # md5sum /etc/portage/package.{keywords,unmask}
62b0238c915f9d783211cda9220ccfeb  /etc/portage/package.keywords
7eb4cd1a075a9bd6b263ceeac68bad26  /etc/portage/package.unmask
ea ~ (0) #                                                                

Works for me. - autounmask actually needs to touch the files while running but then restores the files after finishing. (Just don't interrupt it while processing and --pretend'ing.)
Comment 2 Pacho Ramos gentoo-dev 2007-06-02 18:29:46 UTC
OK, thanks, I pressed Ctrl+C and interrupted it :-(

Thanks a lot and sorry for the inconvenience 
Comment 3 Christian Hartmann (RETIRED) gentoo-dev 2007-06-02 19:00:51 UTC
0.21 will handle user interrupts properly.

So lemme rephrase: Thanks for reporting. ;)
Comment 4 Christian Hartmann (RETIRED) gentoo-dev 2007-06-02 20:31:35 UTC
Fixing in 0.21
Comment 5 Christian Hartmann (RETIRED) gentoo-dev 2007-06-02 20:31:49 UTC
Fixed in 0.21
Comment 6 Pacho Ramos gentoo-dev 2007-06-03 09:39:56 UTC
OK, thanks :-)