+lsb (3.0-9) unstable; urgency=low
+
+ * Fix silly Pythonic else in init-functions. (Closes: #329936)
+ * s/log_action_start_msg/log_action_begin_msg/ in README.Debian.
+ (Thanks to Marco d'Itri for pointing these two out.)
+ * If bits of /etc/lsb-release are missing (but not the whole file), use
+ detected information in its place.
+
+ -- Chris Lawrence <lawrencc@debian.org> Sat, 24 Sep 2005 19:16:00 -0400
+
lsb (3.0-8) unstable; urgency=low
* Bring in lsb-release (binary) package; rewritten to handle -v properly
On Debian, a trailing period will be added to the message,
followed by a newline.
- - log_action_start_msg "Configuring network interfaces"
+ - log_action_begin_msg "Configuring network interfaces"
Log the start of an action that is expected to take some time. On
Debian, an elipsis (...) will follow the message, and the cursor will
/bin/sh, as init scripts sourcing this file may be running under any
Bourne-style shell permitted by Debian policy (i.e. not just bash).
- -- Chris Lawrence <lawrencc@debian.org>, Wed Sep 21 20:21:36 2005
+ -- Chris Lawrence <lawrencc@debian.org>, Sat Sep 24 19:15:02 2005
# /lib/lsb/init-functions for Debian -*- shell-script -*-
#
-#Copyright (c) 2002-03 Chris Lawrence
+#Copyright (c) 2002-05 Chris Lawrence
#All rights reserved.
#
#Redistribution and use in source and binary forms, with or without
RED=`$TPUT setaf 1`
NORMAL=`$TPUT op`
/bin/echo -e "${RED}failed${end}${NORMAL}"
- else:
+ else
echo "failed${end}"
fi
fi
distinfo['OS'] = 'GNU/'+kern
elif kern == 'FreeBSD':
distinfo['OS'] = 'GNU/k'+kern
+ else:
+ distinfo['OS'] = 'GNU'
if os.path.exists('/etc/debian_version'):
release = open('/etc/debian_version').read().strip()
distinfo.update({ 'RELEASE' : release, 'CODENAME' : codename })
else:
# Guess with apt policy before being this stupid?
- distinfo.update({ 'RELEASE' : release, 'CODENAME' : 'sid'} )
+ distinfo.update({ 'RELEASE' : release, 'CODENAME' : 'sid'})
distinfo['DESCRIPTION'] = '%(ID)s %(OS)s %(RELEASE)s (%(CODENAME)s)' % distinfo
return distinfo
def get_distro_information():
- distinfo = {}
+ distinfo = guess_debian_release()
+
+ # Replace any info in /etc/lsb-release
if os.path.exists('/etc/lsb-release'):
for line in open('/etc/lsb-release'):
line = line.strip()
if arg.startswith('"') and arg.endswith('"'):
arg = arg[1:-1]
distinfo[var] = arg
- else:
- distinfo = guess_debian_release()
return distinfo