vsrcextract: support partial extract
e.g: vsrcextract -C dst --strip-components=3 archive.tar.gz path/to/asset
This commit is contained in:
parent
2d2958c00b
commit
9e76db6117
|
@ -160,8 +160,10 @@ vsrcextract() {
|
|||
break ;;
|
||||
esac
|
||||
done
|
||||
local archive="$1"
|
||||
shift
|
||||
vextract "$sc" ${dst:+-C "$dst"} \
|
||||
"${XBPS_SRCDISTDIR}/${pkgname}-${version}/$1"
|
||||
"${XBPS_SRCDISTDIR}/${pkgname}-${version}/$archive" "$@"
|
||||
}
|
||||
|
||||
vtar() {
|
||||
|
|
Loading…
Reference in New Issue