More namespace fixes.
authorZac Medico <zmedico@gentoo.org>
Tue, 22 May 2007 20:37:43 +0000 (20:37 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 22 May 2007 20:37:43 +0000 (20:37 -0000)
svn path=/main/trunk/; revision=6581

pym/portage/dbapi/vartree.py

index 681334c754b23c292871439a8c34393eaef75840..f0be27ebafd3424f9266cacc81c58cbbd948c83c 100644 (file)
@@ -9,7 +9,7 @@ from portage.elog import elog_process
 from portage.exception import InvalidPackageName, InvalidAtom, \
        UnsupportedAPIException, FileNotFound
 from portage.locks import lockdir, unlockdir
-from portage.output import red, green
+from portage.output import bold, red, green
 from portage.update import fixdbentries
 from portage.util import apply_secpass_permissions, ConfigProtect, ensure_dirs, \
        writemsg, writemsg_stdout, write_atomic, atomic_ofstream, writedict, \
@@ -1215,7 +1215,7 @@ class dblink(object):
                                                        # Always blind chmod 0 before unlinking to avoid race conditions.
                                                        os.chmod(obj, 0000)
                                                        if statobj.st_nlink > 1:
-                                                               portage.writemsg("setXid: "+str(st.st_nlink-1)+ \
+                                                               writemsg("setXid: "+str(statobj.st_nlink-1)+ \
                                                                        " hardlinks to '%s'\n" % obj)
                                                os.unlink(obj)
                                        except (OSError, IOError), e: