Bug 15851 - urpmi --skip command line option doesnt skip patterns or specific packages
Summary: urpmi --skip command line option doesnt skip patterns or specific packages
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard: MGA4TOO
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-05 14:32 CEST by claire robinson
Modified: 2015-05-05 15:35 CEST (History)
0 users

See Also:
Source RPM: urpmi
CVE:
Status comment:


Attachments

Description claire robinson 2015-05-05 14:32:26 CEST
Testing erlang bug 15580 and looking for an easy way to install lots of erlang-* packages without unwanted freeswitch or others..

# urpmq -ya erlang- | egrep -v ^erlang
freeswitch-event-erlang-event
syntastic-erlang

I tried..

# urpmi --skip freeswitch-event-erlang-event -ya erlang-

# urpmi -ya erlang- --skip /^freeswitch/

Both of which result in it giving a choice of freeswitch deps, eg.

# urpmi -ya erlang- --skip freeswitch-event-erlang-event
In order to satisfy the 'freeswitch-codec-g729' dependency, one of the following packages is needed:
 1- freeswitch-codec-passthru-g729-1.2.14-2.mga4.i586: Pass-through g729 Codec support for FreeSWITCH open source telephony platform (to install)
 2- freeswitch-codec-commercial-g729-194-5.mga4.nonfree.i586: Freeswitch g729 commercial module (to install)
What is your choice? (1-2) ^C

Using --debug option it's clear that it recognises the --skip flag but selects the package anyway..
# urpmi --debug --skip freeswitch-event-erlang-event -ya erlang-
getting lock on urpmi
parsing: /etc/urpmi/mediacfg.d/Official-4-i586
examining synthesis file [/var/lib/urpmi/Core Release/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Core Updates/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Nonfree Release/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Nonfree Updates/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Tainted Release/synthesis.hdlist.cz]
examining synthesis file [/var/lib/urpmi/Tainted Updates/synthesis.hdlist.cz]
skipping package freeswitch-event-erlang-event-1.2.14-2.mga4.i586
getting exclusive lock on rpm
search_packages: found erlang-runtime_tools-R16B02-2.1.mga4.i586 matching erlang-
search_packages: found freeswitch-event-erlang-event-1.2.14-2.mga4.i586 matching erlang-
search_packages: found freeswitch-event-erlang-event-1.2.14-2.mga4.i586 matching erlang-
search_packages: found freeswitch-event-erlang-event-1.2.14-2.mga4.i586 matching erlang-

...etc

selecting freeswitch-event-erlang-event-1.2.14-2.mga4.i586
requiring freeswitch[== 1:1.2.14-2.mga4],libfreeswitch.so.1 for freeswitch-event-erlang-event-1.2.14-2.mga4.i586
chosen freeswitch-1.2.14-2.mga4.i586 for freeswitch[== 1:1.2.14-2.mga4]
selecting freeswitch-1.2.14-2.mga4.i586
requiring freeswitch-config,gdbm,libfreeswitch.so.1 for freeswitch-1.2.14-2.mga4.i586
chosen freeswitch-config-vanilla-1.2.14-2.mga4.noarch for freeswitch-config
selecting freeswitch-config-vanilla-1.2.14-2.mga4.noarch

...etc

I'll attach a log.

Reproducible: 

Steps to Reproduce:
Comment 1 claire robinson 2015-05-05 14:50:16 CEST
# urpmi --bug 15851 --debug --skip freeswitch-event-erlang-event -ya erlang-

Responded No to installing them.

# tar cfa 15851{.tar.xz,}

The resulting file is far too large to attach so hosting it here:
https://dl.dropboxusercontent.com/u/4147101/QA/15851.tar.xz
Comment 2 claire robinson 2015-05-05 14:55:28 CEST
Seems the same in cauldron.

Version: 4 => Cauldron
Whiteboard: (none) => MGA4TOO

Comment 3 Thierry Vignaud 2015-05-05 15:20:22 CEST
--skip is the CLI equivalent for /etc/urpmi/skip.list, ie "the list of packages that should not be automatically updated when using --auto-select".
You're not using  --auto-select...

For a regular manual search, we explicitly the skip flag:
http://gitweb.mageia.org/software/rpm/urpmi/tree/urpm/select.pm#n120

Since 12 years:
http://gitweb.mageia.org/software/rpm/urpmi/commit/urpm.pm?id=cfd503abe
Comment 4 claire robinson 2015-05-05 15:29:07 CEST
Ahh pebkac then, thanks. 

There is no mechanism to exclude packages or patterns when using -ya then, other than grep & xargs.
Comment 5 Thierry Vignaud 2015-05-05 15:35:32 CEST
/etc/urpmi/prefer.vendor.list is your friend in order to default to the right one.
Or --prefer

Status: NEW => RESOLVED
Resolution: (none) => INVALID


Note You need to log in before you can comment on or make changes to this bug.