add a bunch of fixes and a TODO

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@75 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
lxnay
2007-02-08 02:38:28 +00:00
parent fcc7e0c8f7
commit 36606004e9
2 changed files with 13 additions and 6 deletions

1
TODO
View File

@@ -2,4 +2,5 @@ TODO list (for developers only):
- timestamp management across database and packages servers
- hash management (like Manifest in gentoo)
- write rules for exit codes
- store etpData['md5'] and use it to choose if there is the needing of a version bump of the .etp file
- a lot more :-P

View File

@@ -128,9 +128,12 @@ def extractPkgData(package):
f.close()
# Fill CFLAGS
f = open(tbz2TmpDir+dbCFLAGS,"r")
etpData['cflags'] = f.readline().strip()
f.close()
try:
f = open(tbz2TmpDir+dbCFLAGS,"r")
etpData['cflags'] = f.readline().strip()
f.close()
except IOError:
etpData['cflags'] = ""
# Fill CXXFLAGS
try:
@@ -204,9 +207,12 @@ def extractPkgData(package):
etpData['useflags'] = removeSpaceAtTheEnd(etpData['useflags'])
# fill KEYWORDS
f = open(tbz2TmpDir+dbKEYWORDS,"r")
etpData['keywords'] = f.readline().strip()
f.close()
try:
f = open(tbz2TmpDir+dbKEYWORDS,"r")
etpData['keywords'] = f.readline().strip()
f.close()
except IOError:
etpData['keywords'] = ""
# fill ARCHs
pkgArchs = etpData['keywords']