Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56825 - portage mishandling rsync package argument
Summary: portage mishandling rsync package argument
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-12 13:28 UTC by Michael Richmond
Modified: 2004-07-12 13: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 Michael Richmond 2004-07-12 13:28:54 UTC
Using portage to do a "pretend" update of rsync fails with a message that "sync actions do not support "--pretend". This is using portage 2.0.50-r9. I have just upgraded portage so I am not sure if this behavior is new with this version of portage.

It appears that the argument parsing for 'emerge' is recognising the "sync" in "rsync" and is mistaking this for an "emerge sync" operation. This happens no matter where "rsync" exists in the list of packages.


Reproducible: Always
Steps to Reproduce:
1. run 'emerge -pv rsync' without the quotes
2. or, run 'emerge -pv vim rsync gzip' without the quotes
Actual Results:  
The results of running emerge are:

bash-2.05b# emerge -V
Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.2-r9, 2.6.5-gentoo-
r1)
bash-2.05b# emerge -pv rsync
emerge: "sync" actions do not support "--pretend."

This error is given no matter how many packages are listed nor where rsync is 
in the package list.

Expected Results:  
Emerge should have listed out the package dependencies for rsync.
Comment 1 Sven Wegener gentoo-dev 2004-07-12 13:39:27 UTC
From man emerge:

       emerge sync | rsync

emerge is supposed to recognize both as an action to synchronize the portage tree.
If you want to emerge the rsync package, please use net-misc/rsync as the argument.
That portage allows you to just specify the package name to emerge a package is
handy, but it also breaks if there is more than one packages with the name.
category/package is the only true way of specifying packages.