summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-lang/python/ChangeLog5
-rw-r--r--dev-lang/python/Manifest14
-rw-r--r--dev-lang/python/files/python-updater15
3 files changed, 28 insertions, 6 deletions
diff --git a/dev-lang/python/ChangeLog b/dev-lang/python/ChangeLog
index 41d1275e2369..c84c739128c9 100644
--- a/dev-lang/python/ChangeLog
+++ b/dev-lang/python/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-lang/python
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/ChangeLog,v 1.117 2004/10/19 20:19:14 gmsoft Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/ChangeLog,v 1.118 2004/10/29 15:21:43 liquidx Exp $
+
+ 29 Oct 2004; Alastair Tse <liquidx@gentoo.org> files/python-updater:
+ improvements with tmp log creation with python-updater (#68843)
19 Oct 2004; Guy Martin <gmsoft@gentoo.org> python-2.3.4.ebuild:
Stable on hppa.
diff --git a/dev-lang/python/Manifest b/dev-lang/python/Manifest
index 66f7a0626b3d..7f78364d663b 100644
--- a/dev-lang/python/Manifest
+++ b/dev-lang/python/Manifest
@@ -1,4 +1,7 @@
-MD5 a9d9458e0561b72a051795adbbd9dc3a ChangeLog 20022
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 0ac918b3b6c84e9f169f02ae0dcd0450 ChangeLog 20161
MD5 8145ce0144332d6caca98fa5fb648741 metadata.xml 221
MD5 0499eca9ccd343cf1c183ce21902e286 python-2.1.3-r1.ebuild 2324
MD5 6dd864fb6beb993ede8802350e83602c python-2.2.3-r5.ebuild 4309
@@ -28,4 +31,11 @@ MD5 b530d6f9dbcf30239061be3de80932cc files/python-config-2.2 178
MD5 b530d6f9dbcf30239061be3de80932cc files/python-config-2.2.1 178
MD5 b530d6f9dbcf30239061be3de80932cc files/python-config-2.2.2 178
MD5 201acd1cfd5124f25c58a8db3f78a502 files/python-config-2.3 178
-MD5 69dfdde8a2e880656ba066253dee80ee files/python-updater 8087
+MD5 1263c81e808c8ca882208f9cddd121a2 files/python-updater 8352
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.2.6 (GNU/Linux)
+
+iD8DBQFBgmARRkyva5PS18kRAnErAKClnV8F47Xbr/DHGZjuDdTIn5cFfwCdG5r+
+A72NHDDY47VB1cpQkXCRzRg=
+=U4IT
+-----END PGP SIGNATURE-----
diff --git a/dev-lang/python/files/python-updater b/dev-lang/python/files/python-updater
index da4112db78cd..d4d0e0d0e187 100644
--- a/dev-lang/python/files/python-updater
+++ b/dev-lang/python/files/python-updater
@@ -26,7 +26,7 @@ NEW_PY_VER=$(python -V 2>&1 | sed 's:Python ::' | cut -d. -f1-2)
PKGS_EXCEPTIONS="dev-lang/python sys-apps/portage"
PKGS_MANUAL="app-office/gnumeric app-office/dia x11-libs/vte"
-LOGFILE="/tmp/python-updater.log"
+LOGFILE="/var/log/python-updater.log"
# portage variables
PKG_DBDIR=/var/db/pkg
@@ -60,12 +60,12 @@ elogecho() {
elogerr() {
eerror $*
DATESTRING=`date +"%Y/%m/%d %H:%M:%S"`
- echo "${DATESTRING} ! ${*}" >> ${LOGFILE}
+ echo "${DATESTRING} ! ${*}" >> ${LOGFILE}
}
elog() {
DATESTRING=`date +"%Y/%m/%d %H:%M:%S"`
- echo "${DATESTRING} - ${*}" >> ${LOGFILE}
+ echo "${DATESTRING} - ${*}" >> ${LOGFILE}
}
@@ -93,6 +93,15 @@ if [ -z "${PORTDIR}" ]; then
exit 1
fi
+if [ ! -f ${LOGFILE} ]; then
+ if ! touch ${LOGFILE} 2>&1 > /dev/null; then
+ ewarn "Logging disabled due to permissions"
+ LOGFILE=/dev/null
+ fi
+elif [ ! -w ${LOGFILE} -o ! -L ${LOGFILE} ]; then
+ ewarn "Logging disabled due to permissions"
+ LOGFILE=/dev/null
+fi
#
#