Bug#775832: live-build: functions/packagelists.sh fails to find correct arch for package like e2fslibs:i386=1.42.12-1
Package: live-build
Version: 4.0.4-1
Severity: normal
Tags: patch
Dear Maintainer,
When assigning a package with version number, like
syslinux-common=3:6.03+dfsg-5 or e2fslibs:i386=1.42.12-1,
functions/packagelists.sh fails to find the correct arch.
Attached please find the patch to get the correct arch.
My 2 cents.
-- Package-specific info:
-- System Information:
Debian Release: 8.0
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 3.16.0-4-686-pae (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)
Versions of packages live-build depends on:
ii cdebootstrap 0.6.4
ii debootstrap 1.0.67
Versions of packages live-build recommends:
ii cpio 2.11+dfsg-4
ii live-boot-doc 4.0.2-1
ii live-config-doc 4.0.4-1
ii live-manual-html [live-manual] 1:4.0.2-1
live-build suggests no packages.
-- no debconf information
--- functions/packagelists.sh 2014-12-10 14:56:58.000000000 +0800
+++ functions/packagelists.sh.new 2015-01-20 22:14:45.466783615 +0800
@@ -134,7 +134,7 @@
for _LB_PACKAGE_LINE_PART in ${_LB_PACKAGE_LINE}
do
# Looking for <package>:<architecture>
- if [ -n "$(echo ${_LB_PACKAGE_LINE_PART} | awk -F':' '{print $2}')" ]
+ if [ -n "$(echo ${_LB_PACKAGE_LINE_PART} | awk -F"=" '{print $1}' | awk -F':' '{print $2}')" ]
then
_LB_DISCOVERED_ARCHITECTURES="${_LB_DISCOVERED_ARCHITECTURES} $(echo ${_LB_PACKAGE_LINE_PART} | awk -F':' '{print $2}')"
fi
Reply to: