summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2007-01-16 16:59:34 +0000
committerAlec Warner <antarus@gentoo.org>2007-01-16 16:59:34 +0000
commit6b60a5464561bb8840f5cd71b0f404fd7fd4f610 (patch)
tree8b649c6b3497427ce87453a7a51a11458e78cbd3 /bin/emerge
parentIf repo/profiles/news doesn't exist, return 0 updates (diff)
downloadportage-multirepo-6b60a5464561bb8840f5cd71b0f404fd7fd4f610.tar.gz
portage-multirepo-6b60a5464561bb8840f5cd71b0f404fd7fd4f610.tar.bz2
portage-multirepo-6b60a5464561bb8840f5cd71b0f404fd7fd4f610.zip
switch news timestamp and unread/read storage to '/var/lib/gentoo' like the GLEP states.
svn path=/main/trunk/; revision=5673
Diffstat (limited to 'bin/emerge')
-rwxr-xr-xbin/emerge3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/emerge b/bin/emerge
index 1e492675..95aae5ef 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -30,6 +30,7 @@ except ImportError:
import portage
del os.environ["PORTAGE_LEGACY_GLOBALS"]
from portage import digraph, portdbapi
+from portage_const import NEWS_LIB_PATH
import emergehelp, xpak, commands, errno, re, socket, time, types
import output
@@ -3560,7 +3561,7 @@ def post_emerge(settings, mtimedb, retval):
chk_updated_cfg_files(target_root, config_protect)
NEWS_PATH = os.path.join( "metadata", "news" )
- UNREAD_PATH = os.path.join( target_root, portage.PRIVATE_PATH, 'news')
+ UNREAD_PATH = os.path.join( target_root, NEWS_LIB_PATH, 'news')
porttree = portdbapi( porttree_root = settings["PORTDIR"], mysettings = settings )
newsReaderDisplay = False