From eb78b20354f32beea568fd3cc0ac58e64b5175ea Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Tue, 16 Dec 2014 22:45:43 +0200 Subject: [PATCH] fix slack init mirrors --- CHANGELOG | 6 +++--- slpkg/init.py | 15 +++++++-------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 716da7f7..f8d1a4fd 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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 diff --git a/slpkg/init.py b/slpkg/init.py index 894a0d53..a60a5144 100644 --- a/slpkg/init.py +++ b/slpkg/init.py @@ -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)