fix slack init mirrors

This commit is contained in:
Dimitris Zlatanidis 2014-12-16 22:45:43 +02:00
parent ff66e6037a
commit eb78b20354
2 changed files with 10 additions and 11 deletions

View file

@ -9,20 +9,20 @@ Version 2.1.4-dev
users. Thanks to 'Jack Kiersey' for reporting.
- Fix checksums after try to update slackware packages.
Version 2.1.3-dev
Version 2.1.3
06-12-2014
[Updated] - Fix 'IndexError: tuple index out of range' when sbo upgrade.
Version 2.1.2-dev
Version 2.1.2
04-12-2014
[Feature] - Added checksum all repositories.
[Updated] - Fix downloads modules.
Version 2.1.1-dev
Version 2.1.1
01-12-2014
[Feature] - Added options in /etc/slpkg/slpkg.conf file to select

View file

@ -32,7 +32,6 @@ from __metadata__ import (
color,
log_path,
lib_path,
slack_rel,
build_path,
repositories,
slpkg_tmp_packages,
@ -74,17 +73,17 @@ class Initialization(object):
os.mkdir(log)
if not os.path.exists(lib):
os.mkdir(lib)
packages = mirrors(lib_file, "", slack_rel)
pkg_checksums = mirrors(md5_file, "", slack_rel)
extra = mirrors(lib_file, "extra/", slack_rel)
ext_checksums = mirrors(md5_file, "extra/", slack_rel)
pasture = mirrors(lib_file, "pasture/", slack_rel)
pas_checksums = mirrors(md5_file, "pasture/", slack_rel)
packages = mirrors(lib_file, "")
pkg_checksums = mirrors(md5_file, "")
extra = mirrors(lib_file, "extra/")
ext_checksums = mirrors(md5_file, "extra/")
pasture = mirrors(lib_file, "pasture/")
pas_checksums = mirrors(md5_file, "pasture/")
packages_txt = ("{0} {1} {2}".format(packages, extra, pasture))
checksums_md5 = ("{0} {1} {2}".format(pkg_checksums, ext_checksums,
pas_checksums))
changelog_txt = mirrors(log_file, "", slack_rel)
changelog_txt = mirrors(log_file, "")
self.write(lib, lib_file, packages_txt)
self.write(lib, md5_file, checksums_md5)
self.write(log, log_file, changelog_txt)