[subversion-commit] SVN tex-common commit + diffs: r1308 -
tex-common/trunk/debian
Frank Küster
frank at costa.debian.org
Tue May 9 07:20:28 UTC 2006
Author: frank
Date: 2006-05-09 07:20:26 +0000 (Tue, 09 May 2006)
New Revision: 1308
Modified:
tex-common/trunk/debian/config.in
tex-common/trunk/debian/postinst.in
tex-common/trunk/debian/postrm.in
Log:
fix the logic in config, source confmodule in postrm
Modified: tex-common/trunk/debian/config.in
===================================================================
--- tex-common/trunk/debian/config.in 2006-05-08 23:03:52 UTC (rev 1307)
+++ tex-common/trunk/debian/config.in 2006-05-09 07:20:26 UTC (rev 1308)
@@ -1,5 +1,5 @@
#include variables
-#!/bin/sh -ex
+#!/bin/sh -e
#
# config maintainer script for the Debian <:=${PACKAGE}:> package.
# $Id: config.in 114 2005-08-04 15:04:01Z frn $
@@ -93,29 +93,31 @@
else
db_set tex-common/managecache false || true
fi
- # now check whether this machine has only one normal user account (outside the system range)
- usercount=0
- userid=""
- for uid in `cut -d ':' -f 3 /etc/passwd`; do
- if [ $uid -ge 1000 ] && [ $uid -le 29999 ]; then
- userid=$uid
- : $((usercount++))
- fi
- done
- if [ $usercount -eq 1 ]; then
- db_set tex-common/singleuser true
- # exactly one user account, number in $userid: suggest its group
- # this might break with other authentication setups than /etc/passwd,
- # but it's only a suggestion
- groupID=`sed -n -e "/^[^:]\{1,\}:[^:]\{1,\}:$userid:/ \
+ fi
+
+ # now check whether this machine has only one normal user account (outside the system range)
+ usercount=0
+ userid=""
+ for uid in `cut -d ':' -f 3 /etc/passwd`; do
+ if [ $uid -ge 1000 ] && [ $uid -le 29999 ]; then
+ userid=$uid
+ : $((usercount++))
+ fi
+ done
+ if [ $usercount -eq 1 ]; then
+ db_set tex-common/singleuser true
+ # exactly one user account, number in $userid: suggest its group
+ # this might break with other authentication setups than /etc/passwd,
+ # but it's only a suggestion
+ groupID=`sed -n -e "/^[^:]\{1,\}:[^:]\{1,\}:$userid:/ \
{ s@^[^:]\{1,\}:[^:]\{1,\}:$userid:\([[:digit:]]\{1,\}\):.*@\1@; p }" \
/etc/passwd`
- GROUP=`sed -n -e "/^[^:]\{1,\}:[^:]\{1,\}:$userid/ \
+ GROUP=`sed -n -e "/^[^:]\{1,\}:[^:]\{1,\}:$userid/ \
{s@^\([^:]\{1,\}\):[^:]\{1,\}:$userid:.*@\1@; p}" \
/etc/group`
- db_set tex-common/groupname_single "$GROUP" || true
- fi
+ db_set tex-common/groupname_single "$GROUP" || true
fi
+
cache_debconf_priority=medium
db_input $cache_debconf_priority tex-common/managecache || true
db_go
Modified: tex-common/trunk/debian/postinst.in
===================================================================
--- tex-common/trunk/debian/postinst.in 2006-05-08 23:03:52 UTC (rev 1307)
+++ tex-common/trunk/debian/postinst.in 2006-05-09 07:20:26 UTC (rev 1308)
@@ -1,5 +1,5 @@
<::>//
-#!/bin/sh -ex
+#!/bin/sh -e
#
# postinst maintainer script for the Debian <:=${PACKAGE}:> package.
# $Id$
Modified: tex-common/trunk/debian/postrm.in
===================================================================
--- tex-common/trunk/debian/postrm.in 2006-05-08 23:03:52 UTC (rev 1307)
+++ tex-common/trunk/debian/postrm.in 2006-05-09 07:20:26 UTC (rev 1308)
@@ -15,6 +15,9 @@
# give commandline args a name
action=$1 # remove, purge, upgrade, failed-upgrade, abort-install, abort-upgrade, disappear
+. <:=${CONFMODULE}:>
+db_version 2.0
+
<:open(FUNCTIONS,'debian/postrm.functions');@FUNCTIONS=<FUNCTIONS>;close(FUNCTIONS):>//
<:=@FUNCTIONS:>//
More information about the Pkg-tetex-commits
mailing list