diff options
author | maxice8 <thinkabit.ukim@gmail.com> | 2018-12-04 06:32:50 -0200 |
---|---|---|
committer | Toyam Cox <aviator45003@gmail.com> | 2018-12-04 15:20:59 -0500 |
commit | ee382e95919d9f450bfd0ae89590680056a4dc53 (patch) | |
tree | 80803390444c09bae5afaefcc49903c9c9cdfbd8 /xpcdeps | |
parent | ae95402e86405e64377011828e8d1e8f233fc3dc (diff) | |
download | xtools-ee382e95919d9f450bfd0ae89590680056a4dc53.tar.gz xtools-ee382e95919d9f450bfd0ae89590680056a4dc53.tar.xz xtools-ee382e95919d9f450bfd0ae89590680056a4dc53.zip |
xpcdeps: start matching pkg-config files by the slash
example of problematic behaivour: $ xpcdeps uhd will match gnuradio-uhd.pc from gnuradio and wrongly tell us that gnuradio-devel is a dependency due to Requires: gnuradio-runtime
Diffstat (limited to 'xpcdeps')
-rwxr-xr-x | xpcdeps | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xpcdeps b/xpcdeps index 1b6fdf6..9c93f34 100755 --- a/xpcdeps +++ b/xpcdeps @@ -26,7 +26,7 @@ grab_local() { branch=$(git symbolic-ref -q --short HEAD 2>/dev/null) for pkg in hostdir/binpkgs/$branch/* ; do pkg="${pkg##*/}" - pcfile="$(xbps-query -i --repository=hostdir/binpkgs/"$branch" -f "${pkg%-*}" | grep "$1.pc")" + pcfile="$(xbps-query -i --repository=hostdir/binpkgs/"$branch" -f "${pkg%-*}" | grep "/$1.pc")" if [ -n "$pcfile" ] ; then printf "%s %s\\n" "${pkg%-*}" "$pcfile" touch "$tempdir/$1.pc" |