#!@PYTHON@ -O
# Ripped from HP and updated from Debian
+# Update by Gentoo to support unicode output
#
# Copyright (c) 2004 Hewlett-Packard Development Company, L.P.
import sys
implicit_pattern = re.compile("([^:]*):(\d+): warning: implicit declaration "
- + "of function [`']([^']*)'")
+ + "of function `([^']*)'")
pointer_pattern = re.compile(
"([^:]*):(\d+): warning: "
+ "("
line = sys.stdin.readline()
if line == '':
break
+ # translate unicode open/close quotes to ascii ones
+ line = line.replace("\xE2\x80\x98", "`").replace("\xE2\x80\x99", "'")
m = implicit_pattern.match(line)
if m:
last_implicit_filename = m.group(1)
try:
os.rmdir(catdir)
except OSError, e:
- if e.errno != errno.ENOTEMPTY:
+ if e.errno not in (errno.ENOENT,
+ errno.ENOTEMPTY, errno.EEXIST):
raise
del e
portage.locks.unlockdir(catdir_lock)
if procount:
#print " "+yellow("*")+" Type "+green("emerge --help config")+" to learn how to update config files."
print " "+yellow("*")+" Type "+green("emerge --help config")+" to learn how to update config files."
- print
def checkUpdatedNewsItems( root, NEWS_PATH, UNREAD_PATH, repo_id ):
"""
except ImportError:
sys.path.insert(0, "@PORTAGE_BASE@/pym")
import portage
-portage.env_update(makelinks)
+try:
+ portage.env_update(makelinks)
+except IOError, e:
+ if e.errno == 13:
+ print "env-update: Need superuser access"
+ sys.exit(1)
+ else:
+ raise
in the users environment, then portage will default to ${PORTAGE_TMPDIR}/ccache
(with userpriv) and to /root/.ccache otherwise.
-_`confcache`
- Enable confcache support; global configure caching, speeds up autotool based
- configure calls via the econf helper function. See ebuild(5) for more information.
-
_`collision-protect`
A QA-feature to ensure that a package doesn't overwrite files it doesn't own.
The `COLLISION_IGNORE`_ variable can be used to selectively disable this feature.
present in the user's environment, then portage will default to
${PORTAGE_TMPDIR}/ccache.
.TP
-.B confcache
-Enable confcache support; global configure caching, speeds up autotool based configure
-calls via the econf helper function. See \fBebuild\fR(5) for more information.
-.TP
.B collision\-protect
A QA\-feature to ensure that a package doesn't overwrite files it doesn't own.
The \fICOLLISION_IGNORE\fR variable can be used to selectively disable this
try:
os.rmdir(os.path.join(self.pkgdir, mycat))
except OSError, e:
- if e.errno not in (errno.ENOENT, errno.ENOTEMPTY):
+ if e.errno not in (errno.ENOENT,
+ errno.ENOTEMPTY, errno.EEXIST):
raise
del e
try:
os.rmdir(catdir)
except OSError, e:
- if e.errno != errno.ENOTEMPTY:
+ if e.errno not in (errno.ENOENT,
+ errno.ENOTEMPTY, errno.EEXIST):
raise
del e
portage.locks.unlockdir(catdir_lock)
try:
os.rmdir(catdir)
except OSError, e:
- if e.errno != errno.ENOTEMPTY:
+ if e.errno not in (errno.ENOENT,
+ errno.ENOTEMPTY, errno.EEXIST):
raise
del e
portage.locks.unlockdir(catdir_lock)