[pacman-dev] Little problem with -Qm option (for foreign packages)

x.chantry at wanadoo.fr x.chantry at wanadoo.fr
Tue May 16 16:17:28 EDT 2006


As stated here : http://bbs.archlinux.org/viewtopic.php?t=21311
There is a little problem with the -Qm option. The string comparison is not strict enough. For example, if xarchive isn't in any repos, and xarchiver is in community, then pacman won't show xarchive as being a foreign package.
I was thinking about comparing the length of the strings first, before strstr. What about the conversion to uppercase? is it really needed?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foreign.diff
Type: application/octet-stream
Size: 880 bytes
Desc: not available
URL: <http://archlinux.org/pipermail/pacman-dev/attachments/20060516/76ef76fd/attachment.obj>


More information about the pacman-dev mailing list