+lsb (3.2-9) unstable; urgency=low
+
+ * Fix lsb_release detection when apt-cache policy identifies no Debian
+ sources. (Closes: #476288)
+ * Only use fancy TTY output if TERM is set and FD 1 is a terminal.
+ (Closes: #470993)
+ * Do not use eval in start_daemon(). (Closes: #406059)
+
+ -- Chris Lawrence <lawrencc@debian.org> Thu, 17 Apr 2008 20:38:23 -0500
+
lsb (3.2-8) unstable; urgency=medium
* Bump conflicts to python < 2.6. (Closes: #475953)
exec="$1"; shift
if [ $force = 1 ]; then
- eval /sbin/start-stop-daemon --start --nicelevel $nice --quiet --startas $exec --pidfile /dev/null --oknodo -- "$@"
+ /sbin/start-stop-daemon --start --nicelevel $nice --quiet --startas $exec --pidfile /dev/null --oknodo -- "$@"
elif [ $pidfile ]; then
- eval /sbin/start-stop-daemon --start --nicelevel $nice --quiet --exec $exec --oknodo --pidfile "$pidfile" -- "$@"
+ /sbin/start-stop-daemon --start --nicelevel $nice --quiet --exec $exec --oknodo --pidfile "$pidfile" -- "$@"
else
- eval /sbin/start-stop-daemon --start --nicelevel $nice --quiet --exec $exec --oknodo -- "$@"
+ /sbin/start-stop-daemon --start --nicelevel $nice --quiet --exec $exec --oknodo -- "$@"
fi
}
log_use_fancy_output () {
TPUT=/usr/bin/tput
EXPR=/usr/bin/expr
- if [ "x$TERM" != "xdumb" ] && [ -x $TPUT ] && [ -x $EXPR ] && $TPUT hpa 60 >/dev/null 2>&1 && $TPUT setaf 1 >/dev/null 2>&1; then
+ if [ -t 1 ] && [ "x$TERM" != "" ] && [ "x$TERM" != "xdumb" ] && [ -x $TPUT ] && [ -x $EXPR ] && $TPUT hpa 60 >/dev/null 2>&1 && $TPUT setaf 1 >/dev/null 2>&1; then
[ -z $FANCYTTY ] && FANCYTTY=1 || true
else
FANCYTTY=0
'3.0' : 'woody',
'3.1' : 'sarge',
'4.0' : 'etch',
+ '4.1' : 'lenny',
}
TESTING_CODENAME = 'lenny'
x[1].get('origin', '') == origin and
x[1].get('component', '') == component and
x[1].get('label', '') == label)]
+
+ # Check again to make sure we didn't wipe out all of the releases
+ if not releases:
+ return None
releases.sort()
releases.reverse()
# /etc/debian_version should be numeric
codename = lookup_codename(release, 'n/a')
distinfo.update({ 'RELEASE' : release, 'CODENAME' : codename })
+ elif release.endswith('/sid')
+ distinfo['RELEASE'] = 'testing/unstable'
+ distinfo['CODENAME'] = release
+ elif release.endswith('/unstable'):
+ distinfo['RELEASE'] = '%s/sid' % TESTING_CODENAME
+ distinfo['CODENAME'] = 'testing/unstable'
else:
distinfo['RELEASE'] = release
distinfo['CODENAME'] = None
codename = 'sid'
distinfo.update({ 'RELEASE' : release, 'CODENAME' : codename })
- if 'RELEASE' in distinfo:
+ if distinfo.get('RELEASE'):
distinfo['DESCRIPTION'] += ' %(RELEASE)s' % distinfo
- if 'CODENAME' in distinfo:
+ if distinfo.get('CODENAME'):
distinfo['DESCRIPTION'] += ' (%(CODENAME)s)' % distinfo
return distinfo