summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-12-06 20:59:35 +0100
committerDaniel Baumann <daniel@debian.org>2012-12-06 20:59:35 +0100
commitb46eefce941d38c6f9bf445c6b1df782acdcd1bc (patch)
tree50e616a916536c1eeb830302321c0143b1a65a17
parentca42266824b4b4ccd87243b90867487ba287181b (diff)
downloadvyos-live-build-b46eefce941d38c6f9bf445c6b1df782acdcd1bc.tar.gz
vyos-live-build-b46eefce941d38c6f9bf445c6b1df782acdcd1bc.zip
Adding back legacy filtering for firmware packages on squeeze when contrib or non-free is not enabled.
-rwxr-xr-xscripts/build/binary_debian-installer29
-rwxr-xr-xscripts/build/chroot_linux-image29
2 files changed, 58 insertions, 0 deletions
diff --git a/scripts/build/binary_debian-installer b/scripts/build/binary_debian-installer
index 7b49c83ec..c72122f88 100755
--- a/scripts/build/binary_debian-installer
+++ b/scripts/build/binary_debian-installer
@@ -463,6 +463,35 @@ then
done
fi
+ if [ "${LB_PARENT_DISTRIBUTION}" = "squeeze" ]
+ then
+ # Filter out contrib packages if contrib is not enabled
+ if ! echo ${LB_ARCHIVE_AREAS} | grep -qs contrib
+ then
+ _FIRMWARE_PACKAGES=""
+
+ for _PACKAGE in ${FIRMWARE_PACKAGES}
+ do
+ _FIRMWARE_PACKAGES="${_FIRMWARE_PACKAGES} $(echo ${_PACKAGE} | sed -e 's|^contrib/.*$||')"
+ done
+
+ FIRMWARE_PACKAGES="${_FIRMWARE_PACKAGES}"
+ fi
+
+ # Filter out non-free packages if non-free is not enabled
+ if ! echo ${LB_ARCHIVE_AREAS} | grep -qs non-free
+ then
+ _FIRMWARE_PACKAGES=""
+
+ for _PACKAGE in ${FIRMWARE_PACKAGES}
+ do
+ _FIRMWARE_PACKAGES="${_FIRMWARE_PACKAGES} $(echo ${_PACKAGE} | sed -e 's|^non-free/.*$||')"
+ done
+
+ FIRMWARE_PACKAGES="${_FIRMWARE_PACKAGES}"
+ fi
+ fi
+
# Drop section and keep package names only
for _PACKAGE in ${FIRMWARE_PACKAGES}
do
diff --git a/scripts/build/chroot_linux-image b/scripts/build/chroot_linux-image
index 7e6461c96..10b3fd928 100755
--- a/scripts/build/chroot_linux-image
+++ b/scripts/build/chroot_linux-image
@@ -107,6 +107,35 @@ then
done
fi
+ if [ "${LB_PARENT_DISTRIBUTION}" = "squeeze" ]
+ then
+ # Filter out contrib packages if contrib is not enabled
+ if ! echo ${LB_ARCHIVE_AREAS} | grep -qs contrib
+ then
+ _FIRMWARE_PACKAGES=""
+
+ for _PACKAGE in ${FIRMWARE_PACKAGES}
+ do
+ _FIRMWARE_PACKAGES="${_FIRMWARE_PACKAGES} $(echo ${_PACKAGE} | sed -e 's|^contrib/.*$||')"
+ done
+
+ FIRMWARE_PACKAGES="${_FIRMWARE_PACKAGES}"
+ fi
+
+ # Filter out non-free packages if non-free is not enabled
+ if ! echo ${LB_ARCHIVE_AREAS} | grep -qs non-free
+ then
+ _FIRMWARE_PACKAGES=""
+
+ for _PACKAGE in ${FIRMWARE_PACKAGES}
+ do
+ _FIRMWARE_PACKAGES="${_FIRMWARE_PACKAGES} $(echo ${_PACKAGE} | sed -e 's|^non-free/.*$||')"
+ done
+
+ FIRMWARE_PACKAGES="${_FIRMWARE_PACKAGES}"
+ fi
+ fi
+
# Drop section and keep package names only
for _PACKAGE in ${FIRMWARE_PACKAGES}
do