- small updates

- fix packages directory initialization

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@778 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
(no author)
2007-11-29 16:48:17 +00:00
parent 37b5e51892
commit 5a22cd1565
3 changed files with 11 additions and 2 deletions
+1
View File
@@ -5,6 +5,7 @@ TODO list:
- enable/disable it
- purge function
- remove binkeywords, not used
- move etpConst['branches'] to config files
- add external trigger for splashutils
- find a way to better handle real smartapps deps
- reduce size of packages.db.bz2
+9 -1
View File
@@ -245,7 +245,15 @@ def packages(options):
print_info(green(" * ")+yellow("Fetching remote statistics..."), back = True)
ftp = mirrorTools.handlerFTP(uri)
ftp.setCWD(etpConst['binaryurirelativepath'])
try:
ftp.setCWD(etpConst['binaryurirelativepath'])
except:
bdir = ""
for mydir in etpConst['binaryurirelativepath'].split("/"):
bdir += "/"+mydir
ftp.mkdir(bdir)
ftp.setCWD(etpConst['binaryurirelativepath'])
if (not ftp.isFileAvailable(mybranch)):
ftp.mkdir(mybranch)
ftp.setCWD(mybranch)
+1 -1
View File
@@ -404,7 +404,7 @@ etpConst = {
'currentarch': ETP_ARCH_CONST, # contains the current running architecture
'supportedarchs': ETP_ARCHS, # Entropy supported Archs
'branches': ["3.5","2008"], # available branches, this only exists for the server part
'branches': ["3.5","2008"], # available branches, this only exists for the server part FIXME: move them to server config files
'branch': "3.5", # choosen branch
'keywords': set([ETP_ARCH_CONST,"~"+ETP_ARCH_CONST]), # default allowed package keywords
'gentoo-compat': False, # Gentoo compatibility (/var/db/pkg + Portage availability)