Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 132456 - emerge-delta-rsync removes /usr/portage/profile/packages
Summary: emerge-delta-rsync removes /usr/portage/profile/packages
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Zac Medico
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-06 07:30 UTC by tonich
Modified: 2009-05-04 05:46 UTC (History)
1 user (show)

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 tonich 2006-05-06 07:30:43 UTC
emerge-delta-webrsync removes /usr/portage/profile/*/packages with rsync's --exclude="/packages" option. Result: fail 'emerge --system'
Comment 1 Zac Medico gentoo-dev 2006-05-06 08:58:49 UTC
Well, rsync shouldn't be doing that with --exclude="/packages".  I've tested with rsync-2.6.8 and it seems to exclude properly.  What version of rsync do you have?

Here's the section from the rsync manpage that describes the expected behavior:

INCLUDE/EXCLUDE PATTERN RULES

if the pattern starts with a / then it is anchored to a particular spot in the hierarchy of files, otherwise it is matched against the end of the pathname. This is similar to a leading ^ in regular expressions. Thus "/foo" would match a file named "foo" at either the "root of the transfer" (for a global rule) or in the merge-file's directory (for a per-directory rule).
Comment 2 tonich 2006-05-09 23:05:56 UTC
(In reply to comment #1)
> Well, rsync shouldn't be doing that with --exclude="/packages".  I've tested
> with rsync-2.6.8 and it seems to exclude properly.  What version of rsync do
> you have?
> 
> Here's the section from the rsync manpage that describes the expected behavior:
> 
> INCLUDE/EXCLUDE PATTERN RULES
> 
> if the pattern starts with a / then it is anchored to a particular spot in the
> hierarchy of files, otherwise it is matched against the end of the pathname.
> This is similar to a leading ^ in regular expressions. Thus "/foo" would match
> a file named "foo" at either the "root of the transfer" (for a global rule) or
> in the merge-file's directory (for a per-directory rule).
> 

you right, is not rsync's "--exclude" problem, may be 

tarsync "${FILE}" "${PORTDIR}" -v -s 1 -o portage -g portage -e /distfiles -e /packages -e /local

"-e /packages"