poldek --enablerepo=PATTERN --caplookup=/usr/lib/debug/.build-id/89/4ea1f250416c2d4a1216158a71e21902bbc78b.debug

Bug #493922 reported by Elan Ruusamäe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
poldek
New
Undecided
Unassigned
PLD Linux
New
Wishlist
Unassigned

Bug Description

i'd like to see possibility to enable repositories by a glob on commandline, so gdb issued hint could be adjusted for poldek:

Try: yum --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/89/4ea1f250416c2d4a1216158a71e21902bbc78b.debug

it would enable all repositories matching *-debuginfo pattern:
$ poldek -l|grep debuginfo
th-debuginfo ftp://ftp.th.pld-linux.org/dists/th/PLD/i686/debuginfo/ (noauto,noautoup,type=pndir)
th-obsolete-debuginfo ftp://ftp.th.pld-linux.org/dists/th/obsolete/i686/debuginfo/ (noauto,noautoup,type=pndir)
th-ready-debuginfo ftp://ftp.th.pld-linux.org/dists/th/ready/i686/debuginfo/ (noauto,noautoup,type=pndir)
th-test-debuginfo ftp://ftp.th.pld-linux.org/dists/th/test/i686/debuginfo/ (noauto,noautoup,type=pndir)

so the gdb hint would be likely:
poldek --sn='*-debuginfo' --up -u --caplookup /usr/lib/debug/.build-id/89/4ea1f250416c2d4a1216158a71e21902bbc78b.debug

Revision history for this message
Elan Ruusamäe (glen666) wrote :

oh. i'm sorry, seems the --caplookup needs to be enchanced instead to search filelist, not caplists.

the --sn='*-debuginfo' itself works:
# poldek --sn='*-debuginfo' --up -u --caplookup /usr/lib/debug/.build-id/89/4ea1f250416c2d4a1216158a71e21902bbc78b.debug
Retrieving th-debuginfo::packages.ndir.md...
th-debuginfo is up to date

Retrieving th-obsolete-debuginfo::packages.ndir.md...
th-obsolete-debuginfo is up to date

Retrieving th-ready-debuginfo::packages.ndir.md...
th-ready-debuginfo is up to date

Retrieving th-test-debuginfo::packages.ndir.md...
th-test-debuginfo is up to date
Loading [pndir]th-test-debuginfo...
Loading [pndir]th-ready-debuginfo...
Loading [pndir]th-obsolete-debuginfo...
Loading [pndir]th-debuginfo...
4081 packages read
Removed 1 duplicate package from available set
error: /usr/lib/debug/.build-id/89/4ea1f250416c2d4a1216158a71e21902bbc78b.debug: no such package

# poldek --sn='*-debuginfo'
Loading [pndir]th-test-debuginfo...
Loading [pndir]th-ready-debuginfo...
Loading [pndir]th-obsolete-debuginfo...
Loading [pndir]th-debuginfo...
4081 packages read
Removed 1 duplicate package from available set
Loading [rpmdbcache]/var/lib/rpm...
1897 packages loaded

Welcome to the poldek shell mode. Type "help" for help with commands.

poldek:/all-avail> search -f */usr/lib/debug/.build-id/89/4ea1f250416c2d4a1216158a71e21902bbc78b.debug*
Searching packages..........................................done.
1 package(s) found:
db4.7-debuginfo-4.7.25.4-6.i686
poldek:/all-avail>

summary: - poldek --enablerepo=PATTERN
+ poldek --enablerepo=PATTERN --caplookup=/usr/lib/debug/.build-
+ id/89/4ea1f250416c2d4a1216158a71e21902bbc78b.debug
Revision history for this message
Patryk Zawadzki (patrys) wrote :

I'd rather introduce --filelookup or --pathlookup so we can differentiate between Provides and packaged files.

Revision history for this message
Elan Ruusamäe (glen666) wrote :

indeed, but these should not be exclusive, i'd like to enable them both if i don't really know what kind dep it is.

however it seems poldek is handling symlinks differently than regular files, i.e it actually works on regular files, so it should be then --follow-symlinks or --symlinks-lookup as --caplookup already handles regular files

10:50:04 root[load: 1.06]@ravenous /tmp# l /usr/lib/debug/.build-id/89/4ea1f250416c2d4a1216158a71e21902bbc78b.debug
lrwxrwxrwx 1 root root 28 2009-12-08 08:31 /usr/lib/debug/.build-id/89/4ea1f250416c2d4a1216158a71e21902bbc78b.debug -> ../../lib/libdb-4.7.so.debug*

10:50:11 root[load: 1.05]@ravenous /tmp# poldek --sn='*-debuginfo' --up -u --caplookup /usr/lib/debug/.build-id/89/4ea1f250416c2d4a1216158a71e21902bbc78b.debug
...
4087 packages read
Removed 1 duplicate package from available set
error: /usr/lib/debug/.build-id/89/4ea1f250416c2d4a1216158a71e21902bbc78b.debug: no such package

10:51:44 root[load: 1.63]@ravenous /tmp# poldek --up -u --caplookup /usr/bin/php.cli
...
Removed 17 duplicate packages from available set
php-cli-5.2.11-1.i686: equal version installed, skipped

Changed in pld-linux:
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.