From 4770bc86abc884603500987585d34f85acfcc06b Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 18 Jan 2008 17:12:18 +0000 Subject: - urpmi: o --buildrequires deprecate --src, --src is kept for compatibility but its behaviour is changed a little (it doesn't download src.rpm anymore) ie implement what i suggested on cooker mailing list: Date: Thu, 15 Nov 2007 18:21:32 +0100 Subject: urpmi --src issues, suggesting replacing --src with --buildrequires current situation: % urpmi /xxx/foo.src.rpm #=> installs foo.src.rpm buildrequires % urpmi --install-src foo bar #=> downloads foo.src.rpm bar.src.rpm and "rpm -i" % urpmi --help | grep -- --src --src, -s - next package is a source package. % urpmi --src foo #=> urpmi says it will install foo buildrequires + foo.src.rpm #=> in fact, it only installs foo buildrequires weird cases in current urpmi: % urpmi --src foo bar #=> equiv to "urpmi --src foo ; urpmi bar" % urpmi foo --src bar #=> equiv to "urpmi --src foo bar" above :-( % urpmi --src foo --src bar #=> equiv to "urpmi --src foo bar" :-( suggestions: 1) we could make --src a global option: % urpmi --src foo bar #=> would install buildrequires of foo.src.rpm and bar.src.rpm cons: it breaks compatibility (though i'm quite sure noone uses the previous behaviour) 2) deprecate --src, introduce with --buildrequires: % urpmi --buildrequires foo bar #=> would install buildrequires of foo.src.rpm and bar.src.rpm 3) when doing "urpmi /xxx/foo.src.rpm", warn the user that it should use either "--install-src" or "--buildrequires", and that urpmi is defaulting to "--buildrequires" 2) and 3) are implemented now --- pod/urpmi.8.pod | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'pod') diff --git a/pod/urpmi.8.pod b/pod/urpmi.8.pod index fbdd52bb..5f99430d 100644 --- a/pod/urpmi.8.pod +++ b/pod/urpmi.8.pod @@ -150,13 +150,10 @@ Disable fast search on exact package name; that means that urpmi will propose all packages matching part of the name, even if one of them matches exactly the specified name (this is the same as B<-y>). -=item B<--src> I +=item B<--buildrequires> -Search a source package matching I and select all its dependencies -(that is, its C) by default, unless the B<--install-src> -switch is used in order to install the source package itself. (You can -also install the build dependencies read directly from an rpm spec -file.) +Select all the C of the wanted source packages. +(You can also install the build dependencies read directly from an rpm spec file.) =item B<--install-src> @@ -392,10 +389,6 @@ Do not search in provides to find package (this is the opposite of B<-p>). This is the same as B<--fuzzy>. -=item B<-s> I - -This is the same as B<--src>. - =item B<-q> This is the same as B<--quiet>. -- cgit v1.2.1