[email protected] wrote:
> Hi,
> 
> zhu wrote:
>> For example.
>> I know libqtopengl4 is built from qt-4.7.1-3.1.src.rpm.
>> 
>> Does any zypper command can know libqtopengl4 came's from
>> qt-4.7.1-3.1.src.rpm. 
>> 
>> like what yumdownloader do:
>> yumdownloader --source  libqtopengl4 .
> 
> Does this do what you want?
>  zypper wp libqtopengl4
> (wp is short for whatprovides).
> 
> You can then install the source package by taking the entry in the
> "Name" column as the package name:
> 
>  zypper si qt-4.7.1
> or whatever.
> 
> Would you mind documenting your conclusion in the wiki page when
> you're finished, please? http://wiki.meego.com/Zypper

I thought zypper si would do that correctly just given a binary
pkg name... if not:

you could define a macro that uses rpm to fetch the name, which
it knows... it's a little grotty I guess, but you want something
like:

zypper si `rpm -q --qf '%{SOURCERPM}\n' libqtopengl4`

_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev

Reply via email to