Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50738 - Add a --force to emerge sync
Summary: Add a --force to emerge sync
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 147007
  Show dependency tree
 
Reported: 2004-05-11 04:52 UTC by Pieter De Wit
Modified: 2007-01-13 06:40 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 Pieter De Wit 2004-05-11 04:52:59 UTC
Can we add a --force (-f) to emerge to force it to sync the tree. Sometimes the connection gets dropped before the tree is sync'ed and emerge then doesn't want to recover unless all the timestamp file are deleted.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Sven Wegener gentoo-dev 2004-05-11 08:27:21 UTC
you don't have to delete all timestamp files, just /usr/portage/metadata/timestamp.chk
is used for timestamp checking when emerge sync'ing

but i think that a --force option is helpfull for new users
Comment 2 Nicholas Jones (RETIRED) gentoo-dev 2004-05-16 03:16:54 UTC
Nakano: Wanna figure this one out?
Comment 3 Nicholas Jones (RETIRED) gentoo-dev 2004-05-18 13:53:35 UTC
--force isn't necessary if the timestamp's state is maintained properly.
Comment 4 SpanKY gentoo-dev 2004-05-18 16:00:54 UTC
ive seen the problem originally described once or twice before ...

however, one reason to have a -f with sync would be that perhaps a user deleted a bunch of subfiles by accident and wants to fix that by syncing again
Comment 5 Jason Stubbs (RETIRED) gentoo-dev 2005-07-28 07:25:01 UTC
Putting a hold on feature requests for portage as they are drowning out the 
bugs. Most of these features should be available in the next major version of 
portage. But for the time being, they are just drowning out the major bugs and 
delaying the next version's progress. 
 
Any bugs that contain patches and any bugs for etc-update or dispatch-conf can 
be reopened. Sorry, I'm just not good enough with bugzilla. ;) 
Comment 6 Marius Mauch (RETIRED) gentoo-dev 2007-01-11 13:05:06 UTC
Reopening for consideration (not much for this though).
Comment 7 Zac Medico gentoo-dev 2007-01-11 20:35:28 UTC
Rather than add an option for this, I think that emerge's timestamp message should just print the full path of the timestamp file and inform them to remove it in order to force sync.
Comment 8 Zac Medico gentoo-dev 2007-01-11 20:42:26 UTC
In svn r5565 it now says this (appropriately for the current value of $PORTDIR):

>>> In order to force sync, remove '/usr/portage/metadata/timestamp.chk'.
Comment 9 Zac Medico gentoo-dev 2007-01-13 06:40:36 UTC
This has been released in 2.1.2_rc4-r9.