blob: c628a4320d52d5ccaa6f53df5ab3eb8806798671 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
# xrs PATTERN - like xbps-query -Rs, but take cwd repo into account
BRANCH=$(git symbolic-ref -q --short HEAD 2>/dev/null)
XBPS_DISTDIR="$(xdistdir 2>/dev/null)" || XBPS_DISTDIR=.
ADDREPO="
--repository=$XBPS_DISTDIR/hostdir/binpkgs/$BRANCH
--repository=$XBPS_DISTDIR/hostdir/binpkgs/$BRANCH/nonfree
--repository=$XBPS_DISTDIR/hostdir/binpkgs/$BRANCH/multilib
--repository=$XBPS_DISTDIR/hostdir/binpkgs/$BRANCH/multilib/nonfree
--repository=$XBPS_DISTDIR/hostdir/binpkgs/$BRANCH/debug
--repository=$XBPS_DISTDIR/hostdir/binpkgs
--repository=$XBPS_DISTDIR/hostdir/binpkgs/nonfree
--repository=$XBPS_DISTDIR/hostdir/binpkgs/multilib
--repository=$XBPS_DISTDIR/hostdir/binpkgs/multilib/nonfree
--repository=$XBPS_DISTDIR/hostdir/binpkgs/debug
"
xbps-query $ADDREPO -Rs "$@"
|