Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 276813 | Differences between
and this patch

Collapse All | Expand All

(-)a/pym/portage/dbapi/vartree.py (-2 / +5 lines)
Lines 50-55 from portage.cache.mappings import slot_dict_class Link Here
50
import codecs
50
import codecs
51
import re, shutil, stat, errno, copy, subprocess
51
import re, shutil, stat, errno, copy, subprocess
52
import logging
52
import logging
53
import os as _os
53
import sys
54
import sys
54
import warnings
55
import warnings
55
56
Lines 839-847 class vardbapi(dbapi): Link Here
839
		self._owners = self._owners_db(self)
840
		self._owners = self._owners_db(self)
840
841
841
	def getpath(self, mykey, filename=None):
842
	def getpath(self, mykey, filename=None):
842
		rValue = os.path.join(self.root, VDB_PATH, mykey)
843
		rValue = self.root + _os.sep + VDB_PATH + _os.sep + mykey
843
		if filename != None:
844
		if filename != None:
844
			rValue = os.path.join(rValue, filename)
845
			# If filename is always relative, we can do just
846
			# rValue += _os.sep + filename
847
			rValue = _os.path.join(rValue, filename)
845
		return rValue
848
		return rValue
846
849
847
	def cpv_exists(self, mykey):
850
	def cpv_exists(self, mykey):

Return to bug 276813