updated for version 1.7.3

This commit is contained in:
Dimitris Zlatanidis 2014-08-16 16:13:15 +03:00
parent b473e0a202
commit 3b7c5175e2
17 changed files with 78 additions and 63 deletions

View file

@ -1,6 +1,14 @@
14-08-2014
Version 1.7.3
16-8-2014
Verion 1.7.3
[Updated] - Sort the packets in the list view. We thank Dave for help
https://github.com/wvragga.
[Updated] - Bugfix reinstall lilo after upgrading kernel.
[Updated] - Removed some code system and replaced with Python code.
[Updated] - Reinstall if packages exist and upgrading if not in options
slpkg -s slack <packages>
[Updated] - New paths created, ChangeLog.txt saved in /var/log/slpkg
and SLACKBUILDS.TXT in /var/lib/slpkg/sbo_repo
[Updated] - Upgrade initilazation method
Replace mkdir -p with os.mkdir and create directories only if not exists

View file

@ -1,3 +1,10 @@
# Python 2.7.5
# Slackware Linux Distribution
# Slackware current (not support installing & upgrading via Slackware mirror
because slpkg look /etc/slackware-version file to grep
version and select mirror.
Please don't use slpkg -s slackpkg <package>
& slpkg -c slack upgrade. Expected a solution in a short
time)
# Slackware
# Slackware 64
# No other Python packages needed

View file

@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=slpkg
VERSION=${VERSION:-1.?.?}
VERSION=${VERSION:-1.7.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_dsw}

View file

@ -1,7 +1,7 @@
PRGNAM="slpkg"
VERSION="1.x.x"
VERSION="1.7.3"
HOMEPAGE="https://github.com/dslackw/slpkg"
DOWNLOAD="https://github.com/dslackw/slpkg/archive/v1.x.x.tar.gz"
DOWNLOAD="https://github.com/dslackw/slpkg/archive/v1.7.3.tar.gz"
MD5SUM=""
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""

View file

@ -27,7 +27,7 @@ import shutil
import tarfile
import subprocess
from messages import pkg_not_found, s_user
from slpkg.messages import pkg_not_found, s_user
def build_package(script, source, extra, path):
'''

View file

@ -27,9 +27,9 @@ import subprocess
from collections import OrderedDict
from colors import colors
from messages import pkg_not_found, s_user, template
from __metadata__ import pkg_path, uname, arch, sp, log_path
from slpkg.colors import colors
from slpkg.messages import pkg_not_found, s_user, template
from slpkg.__metadata__ import pkg_path, uname, arch, sp, log_path
from find import find_package

View file

@ -25,15 +25,15 @@ import os
import getpass
import subprocess
from pkg.build import *
from pkg.find import find_package
from pkg.manager import pkg_upgrade
from slpkg.pkg.build import *
from slpkg.pkg.find import find_package
from slpkg.pkg.manager import pkg_upgrade
from colors import colors
from functions import get_file
from messages import pkg_not_found, s_user, template
from __metadata__ import tmp, pkg_path, uname, arch, sp
from __metadata__ import sbo_arch, sbo_tag, sbo_filetype, build_path
from slpkg.colors import colors
from slpkg.functions import get_file
from slpkg.messages import pkg_not_found, s_user, template
from slpkg.__metadata__ import tmp, pkg_path, uname, arch, sp
from slpkg.__metadata__ import sbo_arch, sbo_tag, sbo_filetype, build_path
from search import sbo_search_pkg
from download import sbo_slackbuild_dwn

View file

@ -23,11 +23,11 @@
import sys
from colors import colors
from __metadata__ import pkg_path, sp
from messages import pkg_not_found, template, s_user
from slpkg.colors import colors
from slpkg.__metadata__ import pkg_path, sp
from slpkg.messages import pkg_not_found, template, s_user
from pkg.find import find_package
from slpkg.pkg.find import find_package
from greps import *
from search import sbo_search_pkg

View file

@ -23,8 +23,8 @@
import os
from url_read import url_read
from __metadata__ import uname, arch
from slpkg.url_read import url_read
from slpkg.__metadata__ import uname, arch
def sbo_source_dwn(sbo_url, name):
'''

View file

@ -24,10 +24,10 @@
import os
import sys
from url_read import url_read
from __metadata__ import log_path, lib_path
from slpkg.url_read import url_read
from slpkg.__metadata__ import log_path, lib_path
from slack.slack_version import slack_ver
from slpkg.slack.slack_version import slack_ver
from file_size import server_file_size, local_file_size

View file

@ -23,9 +23,9 @@
import os
from messages import s_user
from url_read import url_read
from __metadata__ import slpkg_tmp
from slpkg.messages import s_user
from slpkg.url_read import url_read
from slpkg.__metadata__ import slpkg_tmp
# create tmp directory if not exist
rdm_path = slpkg_tmp + "readme/"

View file

@ -25,10 +25,10 @@ import os
import re
import sys
from functions import get_file
from __metadata__ import lib_path
from slpkg.functions import get_file
from slpkg.__metadata__ import lib_path
from slack.slack_version import slack_ver
from slpkg.slack.slack_version import slack_ver
from init import initialization

View file

@ -25,15 +25,15 @@ import os
import sys
import subprocess
from colors import colors
from functions import get_file
from __metadata__ import tmp, pkg_path, build_path, sp
from messages import pkg_not_found, pkg_found, template, s_user
from __metadata__ import sbo_arch, sbo_tag, sbo_filetype, arch, log_path
from slpkg.colors import colors
from slpkg.functions import get_file
from slpkg.__metadata__ import tmp, pkg_path, build_path, sp
from slpkg.messages import pkg_not_found, pkg_found, template, s_user
from slpkg.__metadata__ import sbo_arch, sbo_tag, sbo_filetype, arch, log_path
from pkg.find import find_package
from pkg.build import build_package
from pkg.manager import pkg_upgrade
from slpkg.pkg.find import find_package
from slpkg.pkg.build import build_package
from slpkg.pkg.manager import pkg_upgrade
from search import sbo_search_pkg
from file_size import server_file_size

View file

@ -25,15 +25,15 @@ import os
import sys
import subprocess
from colors import colors
from functions import get_file
from __metadata__ import tmp, pkg_path, slpkg_tmp, sp
from __metadata__ import sbo_arch, sbo_tag, sbo_filetype, build_path
from messages import s_user, pkg_not_found, pkg_found, view_sbo, template
from slpkg.colors import colors
from slpkg.functions import get_file
from slpkg.__metadata__ import tmp, pkg_path, slpkg_tmp, sp
from slpkg.__metadata__ import sbo_arch, sbo_tag, sbo_filetype, build_path
from slpkg.messages import s_user, pkg_not_found, pkg_found, view_sbo, template
from pkg.build import build_package
from pkg.find import find_package
from pkg.manager import pkg_upgrade
from slpkg.pkg.build import build_package
from slpkg.pkg.find import find_package
from slpkg.pkg.manager import pkg_upgrade
from read import *
from greps import *

View file

@ -26,13 +26,13 @@ import sys
import time
import subprocess
from colors import colors
from url_read import url_read
from messages import pkg_not_found, s_user
from __metadata__ import slpkg_tmp, pkg_path
from slpkg.colors import colors
from slpkg.url_read import url_read
from slpkg.messages import pkg_not_found, s_user
from slpkg.__metadata__ import slpkg_tmp, pkg_path
from pkg.find import find_package
from pkg.manager import pkg_upgrade, pkg_reinstall
from slpkg.pkg.find import find_package
from slpkg.pkg.manager import pkg_upgrade, pkg_reinstall
from mirrors import mirrors

View file

@ -21,7 +21,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from __metadata__ import arch
from slpkg.__metadata__ import arch
from slack_version import slack_ver
def mirrors(name, location):

View file

@ -26,13 +26,13 @@ import sys
import time
import subprocess
from colors import colors
from messages import s_user
from url_read import url_read
from __metadata__ import pkg_path, slpkg_tmp, arch
from slpkg.colors import colors
from slpkg.messages import s_user
from slpkg.url_read import url_read
from slpkg.__metadata__ import pkg_path, slpkg_tmp, arch
from pkg.find import find_package
from pkg.manager import pkg_upgrade
from slpkg.pkg.find import find_package
from slpkg.pkg.manager import pkg_upgrade
from mirrors import mirrors
from slack_version import slack_ver
@ -90,7 +90,7 @@ def patches():
pkg_upgrade((pch_path + pkg).split())
for kernel in upgrade_all:
if "kernel" in kernel:
print("kernel updating run automatacaly lilo as recomanded")
print("The kernel has been upgraded, reinstall `lilo` ...")
subprocess.call("lilo", shell=True)
break
read = raw_input("Removal downloaded packages [Y/n]? ")