Commit 83734dd6 authored by Natanael Copa's avatar Natanael Copa

moved var/db/world to etc/lbu/packages.list

parent e4104835
V=0.8_beta2
V=0.8_beta3
P=alpine-conf
PV=$(P)-$(V)
APKF=$(PV).apk
......
......@@ -172,11 +172,19 @@ cmd_commit() {
cd "$ROOT"
# for upgrading from packages.list times
mkdir -p $(dirname "$INCLUDE_LIST")
if ! grep "var/lib/apk/world" "$INCLUDE_LIST" >/dev/null 2>&1 ; then
echo "var/lib/apk/world" >> "$INCLUDE_LIST"
fi
# # for upgrading from packages.list times
# mkdir -p $(dirname "$INCLUDE_LIST")
# if ! grep "var/lib/apk/world" "$INCLUDE_LIST" >/dev/null 2>&1 ; then
# echo "var/lib/apk/world" >> "$INCLUDE_LIST"
# fi
# generate the packages.list
echo "#This file is generated by 'lbu commit'" > /etc/lbu/packages.list
for i in $(apk_glob '*') ; do
reqby=$(apk_info -qr $i);
# only add the packages who has no REQUIRED_BY
[ -z "$reqby" ] && echo $i
done | sed 's/-[0-9].*//' >> /etc/lbu/packages.list
# Automatically add list and modified files
currentlist=`VERBOSE="" USE_DEFAULT="-a" cmd_status -a | grep -v ^D | awk '{print $2}'`
......@@ -206,7 +214,9 @@ cmd_commit() {
fi
# remove obsolete file
if [ -z "$DRYRUN" ] ; then
if [ -z "$DRYRUN" ] && [ -f $mnt/packages.list ]; then
echo "Note: Removing packages.list from $(basename $mnt)."
echo " /etc/lbu/packages.list will be used."
rm -f $mnt/packages.list
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment