Bug#695091: live-build: incorrect version check
Package: live-build
Version: 4.0~a1-1
Severity: important
Tags: upstream patch
Current case: live-config:experimental and live-build:experimental (both are 4.0~a1-1).
1) `lb config' in newly created directory - PASS
2) `lb build' immediately after `lb config' - FAIL
Error message is 'This config tree is too new for this version of live-build (4.0~a1-1).'
Problem is laid down in live-build at version check.
$ fgrep -h -n -e VERSION /usr/share/live/build/functions/defaults.sh
1202: if [ ${CURRENT_CONFIG_VERSION} -ge 4 ]
1204: Echo_error "This config tree is too new for this version of live-build (${VERSION})."
Current major version is 4; therefore, it refuses to build with current config version.
Suggested patch on /usr/share/live/build/functions/defaults.sh:
- if [ ${CURRENT_CONFIG_VERSION} -ge 4 ]
+ if [ ${CURRENT_CONFIG_VERSION} -gt 4 ]
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 3.6-pf7.krd2 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
SY, Konstantin Demin.
Reply to: