aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gaffney <agaffney@gentoo.org>2005-10-23 23:51:52 +0000
committerAndrew Gaffney <agaffney@gentoo.org>2005-10-23 23:51:52 +0000
commitb39a78754faab854bc479eade66468d718677b93 (patch)
tree1d37282a13f67ca56923d08dbfdd240c503265c7 /src/GLIUtility.py
parentsmall fix (diff)
downloadgli-b39a78754faab854bc479eade66468d718677b93.tar.gz
gli-b39a78754faab854bc479eade66468d718677b93.tar.bz2
gli-b39a78754faab854bc479eade66468d718677b93.zip
src/GLIUtility.py:
added parse_vdb_contents() src/GLIArchitectureTemplate.py: added copy_pkg_to_chroot() added debug code to dynamic-stage3 git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/gli/trunk@998 f8877401-5920-0410-a79b-8e2d7e04ca0d
Diffstat (limited to 'src/GLIUtility.py')
-rw-r--r--src/GLIUtility.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/GLIUtility.py b/src/GLIUtility.py
index 2ae5050..46cb395 100644
--- a/src/GLIUtility.py
+++ b/src/GLIUtility.py
@@ -887,3 +887,20 @@ def get_grp_pkgs_from_cd():
for pkg in output:
results.append(pkg[(pkg.find('/')+1):])
return results
+
+def parse_vdb_contents(file):
+ entries = []
+ try:
+ vdbfile = open(file, "r")
+ except:
+ return entries
+ for line in vdbfile.readlines():
+ parts = line.strip().split(" ")
+ if parts[0] == "obj":
+ entries.append(parts[1])
+ elif parts[0] == "dir":
+ entries.append(parts[1] + "/")
+ elif parts[0] == "sym":
+ entries.append(" ".join(parts[1:4]))
+ entries.sort()
+ return entries