xbps-src: a path to the sourcepkg directory can now be used.

For example:

	$ ./xbps-src install srcpkgs/foo
	$ ./xbps-src install /path/to/void-packages/srcpkgs/foo
	$ ./xbps-src install foo
	$ cd srcpkgs/foo && xbps-src (if void-packages is in PATH)

The basename of the pkgname argument is now used.
This commit is contained in:
Juan RP 2014-09-27 06:53:27 +02:00
parent 1c22f1e6f3
commit fb83aa9025
1 changed files with 1 additions and 1 deletions

View File

@ -430,7 +430,7 @@ readonly XBPS_DIGEST_CMD="xbps-uhelper digest"
readonly XBPS_CMPVER_CMD="xbps-uhelper cmpver"
XBPS_TARGET="$1"
XBPS_TARGET_PKG="$2"
XBPS_TARGET_PKG="${2##*/}"
# Check if stdout is a tty; if false disable colors.
test -t 1 || export NOCOLORS=1