Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 91002 - --noreplace/-n should add to world if necessary
Summary: --noreplace/-n should add to world if necessary
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Conceptual/Abstract Ideas (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2005-04-30 16:42 UTC by ferret
Modified: 2005-06-01 13:53 UTC (History)
0 users

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


Attachments
type script showing misbehaivour (typescript,951 bytes, text/plain)
2005-05-04 20:17 UTC, ferret
Details
part of a diff between .19 and .20 bin/emerge (portdiff,1.06 KB, text/plain)
2005-05-04 20:18 UTC, ferret
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ferret 2005-04-30 16:42:30 UTC
Normally when you emerge things and don't specify -u, --oneshot (and a few other
situations), they're added to the world file.  This doesn't happen with emerge -n
and I can't work ouh why that would be.

There's one really good reason for having this behaivour: adding installed things
to the world file without having to re-emerge them.  This is very useful when
you're using depclean, for example.

If there's a good reason for not adding to world file when using -n please mark
this WONTFIX or whatever.  Otherwise I'm happy to submit code.
Comment 1 Jason Stubbs (RETIRED) gentoo-dev 2005-04-30 22:52:46 UTC
This works in portage-2.0.51.20. Are you using 2.0.51.19?
Comment 2 Jason Stubbs (RETIRED) gentoo-dev 2005-05-03 07:14:29 UTC
This works here and nothing has changed that could affect that between .19 and .21 that I know of.
Comment 3 ferret 2005-05-04 20:11:36 UTC
Found the source problem by doing diffs of the bin/emerge binary between .19 and .20.  Attached.

-n adds to world in .19 but not in .20 or above.  I have also attached some script output which shows this.

No pertinent changes were made between .20 and .21 that I could find.

I used clean portage source files from mirrors, so I'm sure the problem isn't local to my box.

Please try again to confirm this.  If you still can't, then leave the bug closed and I'll try and work out why I've become insane.
Comment 4 ferret 2005-05-04 20:17:28 UTC
Created attachment 58095 [details]
type script showing misbehaivour

Desired behaivour from .19, undesired from .20
Comment 5 ferret 2005-05-04 20:18:40 UTC
Created attachment 58096 [details]
part of a diff between .19 and .20 bin/emerge

I don't know python but the removal of this wodge of code looks like a likely
culprit.
Comment 6 Jason Stubbs (RETIRED) gentoo-dev 2005-05-04 20:55:05 UTC
Verified
Comment 7 Jason Stubbs (RETIRED) gentoo-dev 2005-05-04 20:55:23 UTC
Fixed
Comment 8 ferret 2005-06-01 13:53:31 UTC
Thanks. :)