Entropy/Equo:

- searchOrphans: do not crash on symlink loops
Entropy/RepoInterface:
- when setting up a new gentoo profile and reverting the change, make sure to remove the old make.profile too


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2938 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
lxnay
2009-01-25 17:25:12 +00:00
parent f2472ca9ac
commit c6266cc39c
3 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ TODO list
- documentation + man page
Repository Manager:
- multiple instances support
- multiple instances support (on server: Fatal Python error: PyEval_RestoreThread: NULL tstate)
Proposed for Entropy >1.0 (require API changes):
- Entropy codebase refactoring
+5 -1
View File
@@ -481,7 +481,11 @@ def searchOrphans(EquoConnection = None):
tdbconn = Equo.openGenericDatabase(filepath)
tdbconn.initializeDatabase()
for xdir in dirs:
for currentdir,subdirs,files in os.walk(xdir):
try:
wd = os.walk(xdir)
except RuntimeError: # maximum recursion?
continue
for currentdir,subdirs,files in wd:
foundFiles = {}
for filename in files:
# filter python compiled objects?
+2
View File
@@ -7654,6 +7654,8 @@ class RepoInterface:
os.remove(system_make_profile)
os.symlink(repo_profile_link_data,system_make_profile)
if not self.entropyTools.is_valid_path(system_make_profile):
if os.path.lexists(system_make_profile):
os.remove(system_make_profile)
# revert change, link does not exist yet
self.Entropy.updateProgress(
"%s: %s %s. %s." % (