Adding back legacy filtering for firmware packages on squeeze when contrib or non-free is not enabled.
This commit is contained in:
parent
ca42266824
commit
b46eefce94
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue