xbps-mklive: update for new xbps utils, bump to 0.1.5.
--HG-- extra : convert_revision : 88614ab83e8c7f8cc66026eb7c2d0dedbe5ef5f6
This commit is contained in:
parent
1b7ec4b18a
commit
9b49599179
2 changed files with 17 additions and 8 deletions
|
@ -154,14 +154,23 @@ if [ ! -f "$ISOLINUX_DIR/vesamenu.c32" ]; then
|
||||||
cp -f $SYSLINUX_DATADIR/vesamenu.c32 "$ISOLINUX_DIR"
|
cp -f $SYSLINUX_DATADIR/vesamenu.c32 "$ISOLINUX_DIR"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for _pkg_ in ${PACKAGE_LIST}; do
|
xbps_relver=$(xbps-bin.static -V)
|
||||||
info_msg "Installing ${_pkg_} package..."
|
xbps-uhelper.static cmpver ${xbps_relver} 20091222
|
||||||
xbps-bin.static -r $TEMP_ROOTFS -f install ${_pkg_}
|
if [ $? -eq 255 ]; then
|
||||||
|
yesflag="-f"
|
||||||
|
for _pkg_ in ${PACKAGE_LIST}; do
|
||||||
|
info_msg "Installing ${_pkg_} package..."
|
||||||
|
xbps-bin.static -r $TEMP_ROOTFS ${yesflag} install ${_pkg_}
|
||||||
|
[ $? -ne 0 ] && error_out $?
|
||||||
|
done
|
||||||
|
else
|
||||||
|
yesflag="-y"
|
||||||
|
xbps-bin.static -r $TEMP_ROOTFS ${yesflag} install ${PACKAGE_LIST}
|
||||||
[ $? -ne 0 ] && error_out $?
|
[ $? -ne 0 ] && error_out $?
|
||||||
done
|
fi
|
||||||
xbps-bin.static -r $TEMP_ROOTFS autoupdate || error_out $?
|
xbps-bin.static -r $TEMP_ROOTFS ${yesflag} autoupdate || error_out $?
|
||||||
xbps-bin.static -r $TEMP_ROOTFS autoremove || error_out $?
|
xbps-bin.static -r $TEMP_ROOTFS ${yesflag} autoremove || error_out $?
|
||||||
xbps-bin.static -r $TEMP_ROOTFS purge all || error_out $?
|
xbps-bin.static -r $TEMP_ROOTFS ${yesflag} purge all || error_out $?
|
||||||
xbps-bin.static -r $TEMP_ROOTFS list > $BUILD_TMPDIR/packages.txt
|
xbps-bin.static -r $TEMP_ROOTFS list > $BUILD_TMPDIR/packages.txt
|
||||||
|
|
||||||
info_msg "Creating /etc/motd..."
|
info_msg "Creating /etc/motd..."
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'xbps-mklive'
|
# Template file for 'xbps-mklive'
|
||||||
pkgname=xbps-mklive
|
pkgname=xbps-mklive
|
||||||
version=0.1.4
|
version=0.1.5
|
||||||
build_style=custom-install
|
build_style=custom-install
|
||||||
short_desc="XBPS Live image maker"
|
short_desc="XBPS Live image maker"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
|
Loading…
Reference in a new issue