def load_packages (self): url = mirror + '/setup.ini' # FIXME: download/offline update file = self.settings.downloads + '/cygwin/setup.ini' if not os.path.exists (file): misc.download_url (url, self.settings.downloads + '/cygwin', local=['file://' + self.settings.downloads + '/cygwin'], ) # arg # self.file_sub ([('\':"', "':'")], file) s = open (file).read () open (file, 'w').write (s.replace ('\':"', "':'")) self.grok_setup_ini (file, self.source) # support one extra tools setup.ini, that overrides the default local_file = self.settings.uploads + '/cygwin/setup.ini' if os.path.exists (local_file): ## FIXME: using the generated setup.ini to install the ## actual to be distributed cygwin packages with cygwin ## names does not work. ## ## After building gub installs the gub packages, using GUB ## naming. #self.grok_setup_ini (local_file) self.grok_setup_ini (local_file, self.source)
def load_packages(self): from gub import gup p = gup.DependencyManager(self.settings.system_root) # arch = settings.platform # if settings.platform == 'debian': # arch = 'i386' arch = self.settings.package_arch branch = self.settings.debian_branch packages_path = '/dists/%(branch)s/main/binary-%(arch)s/Packages.gz' \ % locals () url = mirror + packages_path dir = self.settings.downloads + '/Debian' os.system('mkdir -p %(dir)s' % locals()) base = dir + '/Packages' file = '.'.join((base, arch, branch)) # FIXME: download/offline update if not os.path.exists(file): misc.download_url( url, dir, local=['file://' + self.settings.downloads + '/Debian'], ) os.system('gunzip %(base)s.gz' % locals()) os.system('mv %(base)s %(file)s' % locals()) self.grok_packages_file(file)
def load_packages(self): url = mirror + '/setup.ini' # FIXME: download/offline update file = self.settings.downloads + '/cygwin/setup.ini' if not os.path.exists(file): misc.download_url( url, self.settings.downloads + '/cygwin', local=['file://' + self.settings.downloads + '/cygwin'], ) # arg # self.file_sub ([('\':"', "':'")], file) s = open(file).read() open(file, 'w').write(s.replace('\':"', "':'")) self.grok_setup_ini(file, self.source) # support one extra tools setup.ini, that overrides the default local_file = self.settings.uploads + '/cygwin/setup.ini' if os.path.exists(local_file): ## FIXME: using the generated setup.ini to install the ## actual to be distributed cygwin packages with cygwin ## names does not work. ## ## After building gub installs the gub packages, using GUB ## naming. #self.grok_setup_ini (local_file) self.grok_setup_ini(local_file, self.source)
def load_packages (self): from gub import gup p = gup.DependencyManager (self.settings.system_root) # arch = settings.platform # if settings.platform == 'debian': # arch = 'i386' arch = self.settings.package_arch branch = self.settings.debian_branch packages_path = '/dists/%(branch)s/main/binary-%(arch)s/Packages.gz' \ % locals () url = mirror + packages_path dir = self.settings.downloads + '/Debian' os.system ('mkdir -p %(dir)s' % locals ()) base = dir + '/Packages' file = '.'.join ((base, arch, branch)) # FIXME: download/offline update if not os.path.exists (file): misc.download_url (url, dir, local=['file://' + self.settings.downloads + '/Debian'], ) os.system ('gunzip %(base)s.gz' % locals ()) os.system ('mv %(base)s %(file)s' % locals ()) self.grok_packages_file (file)