- updated TODO

- extra flatten for horrible DEPEND strings

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1127 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
(no author)
2008-02-04 19:50:31 +00:00
parent 964795473f
commit dbbe3e62df
3 changed files with 23 additions and 6 deletions
+1
View File
@@ -1,6 +1,7 @@
TODO list:
- glsa utility (*)
- migrate server code to ServerInterface
[] write a tool that helps keeping packages updated (also supporting injected ones)
- Community repositories
- split RDEPEND and PDEPEND
- find a way to better handle real smartapps deps (need split PDEPEND?)
+18 -5
View File
@@ -1433,12 +1433,25 @@ def umountProc():
# check if it's already mounted
procfiles = os.listdir("/proc")
if len(procfiles) > 2:
spawnCommand("umount /proc", " &> /dev/null")
spawnCommand("umount /proc", " &> /dev/null")
spawnCommand("umount /proc", " &> /dev/null")
return True
spawnCommand("umount /proc", " &> /dev/null")
spawnCommand("umount /proc", " &> /dev/null")
spawnCommand("umount /proc", " &> /dev/null")
return True
else:
return True
return True
def flatten(l, ltypes=(list, tuple)):
i = 0
while i < len(l):
while isinstance(l[i], ltypes):
if not l[i]:
l.pop(i)
if not len(l):
break
else:
l[i:i+1] = list(l[i])
i += 1
return l
class lifobuffer:
+4 -1
View File
@@ -360,6 +360,8 @@ def calculate_dependencies(my_iuse, my_use, my_license, my_depend, my_rdepend, m
deps = paren_license_choose(deps)
else:
deps = paren_choose(deps)
# flatten out
deps = entropyTools.flatten(deps)
deps = ' '.join(deps)
except exceptionTools.InvalidDependString, e:
print_error("%s: %s\n" % (k, str(e)))
@@ -384,7 +386,8 @@ def paren_choose(dep_list):
if not matched and item:
# no match, append the first one
# and let reagent fuck up
newlist.append(item[0])
for x in item:
newlist.append(x)
else:
if item not in ["||"]:
newlist.append(item)