Create binpkgs for meta-template packages.
--HG-- extra : convert_revision : fdf26fe45ee1b5ecb2d32a7e72e2b83c8ee02f5a
This commit is contained in:
parent
8df38b299b
commit
a31a003a63
4 changed files with 11 additions and 32 deletions
|
@ -108,19 +108,6 @@ install_pkg()
|
|||
. $XBPS_SHUTILSDIR/install_funcs.sh
|
||||
install_src_phase
|
||||
|
||||
#
|
||||
# Just register meta-template and exit.
|
||||
#
|
||||
if [ "$build_style" = "meta-template" ]; then
|
||||
$XBPS_PKGDB_CMD register $pkgname $version "$short_desc"
|
||||
if [ $? -eq 0 ]; then
|
||||
msg_normal "Installed meta-template: $pkg."
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
|
||||
#
|
||||
# Do not stow package if it wasn't requested.
|
||||
#
|
||||
|
@ -162,15 +149,6 @@ remove_pkg()
|
|||
|
||||
. $XBPS_TEMPLATESDIR/$pkg.tmpl
|
||||
|
||||
#
|
||||
# If it's a meta-template, just unregister it from the db.
|
||||
#
|
||||
if [ "$build_style" = "meta-template" ]; then
|
||||
$XBPS_PKGDB_CMD unregister $pkgname $version
|
||||
[ $? -eq 0 ] && msg_normal "Removed meta-template: $pkg."
|
||||
return $?
|
||||
fi
|
||||
|
||||
ver=$($XBPS_PKGDB_CMD version $pkg)
|
||||
[ -z "$ver" ] && msg_error "$pkg is not installed."
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue