- 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:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user