summaryrefslogtreecommitdiff
path: root/scripts/build
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-07-30 01:53:56 +0200
committerDaniel Baumann <daniel@debian.org>2012-07-30 18:19:23 +0200
commit913c6037af2c4a7fb03e6c73f233f96149a735cd (patch)
tree86c1e6703540b765710e2290a7e3a8408ed9a597 /scripts/build
parenta48c974c9ca35c0ded39df3ab6ac91c415d08f13 (diff)
downloadvyos-live-build-913c6037af2c4a7fb03e6c73f233f96149a735cd.tar.gz
vyos-live-build-913c6037af2c4a7fb03e6c73f233f96149a735cd.zip
Adding shortcut helper for dctrl-tools.
This 'Packages' shortcut helper can be used for simplified usage of grep-aptavailable from dctrl-tools. Rather than needing to specify the following explicit command: ! grep-aptavail -n -sPackage -FPriority standard in package lists, the following shortcut can be used: ! Packages Priority standard
Diffstat (limited to 'scripts/build')
-rwxr-xr-xscripts/build/lb_binary_package-lists9
-rwxr-xr-xscripts/build/lb_chroot_package-lists9
2 files changed, 18 insertions, 0 deletions
diff --git a/scripts/build/lb_binary_package-lists b/scripts/build/lb_binary_package-lists
index 74b34e8b8..598baeb3c 100755
--- a/scripts/build/lb_binary_package-lists
+++ b/scripts/build/lb_binary_package-lists
@@ -51,6 +51,13 @@ then
# Installing depends
Install_package
+ if [ -e "${LIVE_BUILD}/share/bin/Packages" ]
+ then
+ cp "${LIVE_BUILD}/share/bin/Packages" chroot/bin
+ else
+ cp /usr/share/live/build/bin/Packages chroot/bin
+ fi
+
mkdir -p chroot/binary.deb/archives/partial
mv chroot/var/lib/dpkg/status chroot/var/lib/dpkg/status.tmp
touch chroot/var/lib/dpkg/status
@@ -121,6 +128,8 @@ then
cd "${OLDPWD}"
+ rm -f chroot/bin/Packages
+
rm -rf chroot/binary.deb
mv chroot/var/lib/dpkg/status.tmp chroot/var/lib/dpkg/status
diff --git a/scripts/build/lb_chroot_package-lists b/scripts/build/lb_chroot_package-lists
index f38fff7b6..55cf9323c 100755
--- a/scripts/build/lb_chroot_package-lists
+++ b/scripts/build/lb_chroot_package-lists
@@ -55,6 +55,13 @@ then
# Installing depends
Install_package
+ if [ -e "${LIVE_BUILD}/share/bin/Packages" ]
+ then
+ cp "${LIVE_BUILD}/share/bin/Packages" chroot/bin
+ else
+ cp /usr/share/live/build/bin/Packages chroot/bin
+ fi
+
for LIST in config/package-lists/*.list \
config/package-lists/*.list.chroot \
config/package-lists/*.list.chroot_${_PASS}
@@ -67,6 +74,8 @@ then
fi
done
+ rm -f chroot/bin/Packages
+
# Removing dctrl-tools again if the user has not installed it
if ! grep -qs dctrl-tools chroot/root/packages.chroot
then