From 54c84db34d5547dabe6bb33cac9a81a62b76ace0 Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Sat, 11 Jul 2009 17:05:54 +0000 Subject: Assign 'cfgprot' before referencing it. Reported by Thomas Sachau. svn path=/main/trunk/; revision=13814 --- pym/portage/dbapi/vartree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index a5b39e317..486439718 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -3834,13 +3834,13 @@ class dblink(object): protected = self.isprotected(mydest) if mydmode != None: # destination file exists + cfgprot = 0 if stat.S_ISDIR(mydmode): # install of destination is blocked by an existing directory with the same name cfgprot = 1 showMessage("!!! %s\n" % mydest, level=logging.ERROR, noiselevel=-1) elif stat.S_ISREG(mydmode) or (stat.S_ISLNK(mydmode) and os.path.exists(mydest) and stat.S_ISREG(os.stat(mydest)[stat.ST_MODE])): - cfgprot = 0 # install of destination is blocked by an existing regular file, # or by a symlink to an existing regular file; # now, config file management may come into play. -- cgit v1.2.3-1-g7c22