mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-18 10:26:29 +01:00
update license
This commit is contained in:
parent
1f5118d1eb
commit
8b4aa3a033
13 changed files with 31 additions and 35 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# slpkg
|
||||
# slpkg file is part of slpkg.
|
||||
|
||||
# Copyright 2014 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
|
||||
# All rights reserved.
|
||||
|
@ -10,7 +10,7 @@
|
|||
|
||||
# https://github.com/dslackw/slpkg
|
||||
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# Slpkg is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
|
|
@ -230,7 +230,6 @@ $ \fBslpkg -n termcolor\fP
|
|||
+==============================================================================
|
||||
| SlackBuild : termcolor.tar.gz
|
||||
| Source : termcolor-1.1.0.tar.gz
|
||||
| Extra :
|
||||
| Requirements :
|
||||
+===============================================================================
|
||||
README View the README file
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# colors.py
|
||||
# colors.py file is part of slpkg.
|
||||
|
||||
# Copyright 2014 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
|
||||
# All rights reserved.
|
||||
|
@ -10,7 +10,7 @@
|
|||
|
||||
# https://github.com/dslackw/slpkg
|
||||
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# Slpkg is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# functions.py
|
||||
# functions.py file is part of slpkg.
|
||||
|
||||
# Copyright 2014 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
|
||||
# All rights reserved.
|
||||
|
@ -10,7 +10,7 @@
|
|||
|
||||
# https://github.com/dslackw/slpkg
|
||||
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# Slpkg is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# main.py
|
||||
# main.py file is part of slpkg.
|
||||
|
||||
# Copyright 2014 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
|
||||
# All rights reserved.
|
||||
|
@ -10,7 +10,7 @@
|
|||
|
||||
# https://github.com/dslackw/slpkg
|
||||
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# Slpkg is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
|
|
@ -87,7 +87,7 @@ def view_sbo(pkg, sbo_url, sbo_dwn, source_dwn, sbo_req):
|
|||
colors.CYAN, pkg, colors.GREEN, colors.ENDC + sbo_url))
|
||||
template(78)
|
||||
print("| {0}SlackBuild : {1}{2}".format(colors.GREEN, colors.ENDC, sbo_dwn))
|
||||
print("| {0}Source : {1}{2}".format(colors.GREEN, colors.ENDC, source_dwn))
|
||||
print("| {0}Sources : {1}{2}".format(colors.GREEN, colors.ENDC, source_dwn))
|
||||
print("| {0}Requirements : {1}{2}".format(colors.YELLOW, colors.ENDC,
|
||||
", ".join(sbo_req)))
|
||||
template(78)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# find.py
|
||||
# find.py file is part of slpkg.
|
||||
|
||||
# Copyright 2014 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
|
||||
# All rights reserved.
|
||||
|
@ -10,7 +10,7 @@
|
|||
|
||||
# https://github.com/dslackw/slpkg
|
||||
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# Slpkg is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# manager.py
|
||||
# manager.py file is part of slpkg.
|
||||
|
||||
# Copyright 2014 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
|
||||
# All rights reserved.
|
||||
|
@ -10,7 +10,7 @@
|
|||
|
||||
# https://github.com/dslackw/slpkg
|
||||
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# Slpkg is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
@ -95,9 +95,8 @@ def pkg_remove(binary):
|
|||
removed.append(pkg)
|
||||
else:
|
||||
message = "Can't remove"
|
||||
bol, eol = "", ""
|
||||
not_found.append(pkg)
|
||||
pkg_not_found(bol, pkg, message, eol)
|
||||
pkg_not_found("", pkg, message, "")
|
||||
if removed == []:
|
||||
print # new line at end
|
||||
else:
|
||||
|
@ -176,8 +175,7 @@ def pkg_find(binary):
|
|||
find_package(pkg + sp, pkg_path)))
|
||||
else:
|
||||
message = "Can't find"
|
||||
bol, eol = "", ""
|
||||
pkg_not_found(bol, pkg, message, eol)
|
||||
pkg_not_found("", pkg, message, "")
|
||||
print # new line at end
|
||||
|
||||
def pkg_display(binary):
|
||||
|
|
|
@ -28,8 +28,8 @@ import subprocess
|
|||
from colors import colors
|
||||
from functions import get_file
|
||||
from messages import pkg_not_found, pkg_found, template
|
||||
from __metadata__ import build, sbo_tag, sbo_filetype
|
||||
from __metadata__ import tmp, pkg_path, build_path, log_path, sp
|
||||
from __metadata__ import (tmp, pkg_path, build_path, log_path,
|
||||
sp, build, sbo_tag, sbo_filetype)
|
||||
|
||||
from pkg.find import find_package
|
||||
from pkg.build import build_package
|
||||
|
@ -52,7 +52,7 @@ def sbo_build(name):
|
|||
dependencies_list = sbo_dependencies_pkg(name)
|
||||
try:
|
||||
if dependencies_list is not None:
|
||||
pkg_sum = 0
|
||||
pkg_sum, SC, EC = 0, "", ""
|
||||
requires, dependencies, pkg_for_install = [], [], []
|
||||
requires.append(name)
|
||||
for pkg in dependencies_list:
|
||||
|
@ -76,30 +76,30 @@ def sbo_build(name):
|
|||
arch = "i486"
|
||||
elif "arm" in arch:
|
||||
arch = "arm"
|
||||
else:
|
||||
arch = os.uname()[4]
|
||||
if "UNSUPPORTED" in src:
|
||||
arch = "UNSUPPORTED"
|
||||
SC, EC = colors.RED, colors.ENDC
|
||||
elif "UNTESTED" in src:
|
||||
arch = "UNTESTED"
|
||||
SC, EC = colors.YELLOW, colors.ENDC
|
||||
print("\nThe following packages will be automatically installed or upgraded")
|
||||
print("with new version:\n")
|
||||
template(78)
|
||||
print "| Package", " "*31, "Version", " "*7, "Arch", " "*5, "Repository"
|
||||
template(78)
|
||||
print("Installing:")
|
||||
print " ", "".join(pkg_for_install), " "*(38-len(name)), sbo_ver, " "*(
|
||||
14-len(sbo_ver)), arch, " "*(9-len(arch)), "SBo"
|
||||
print " ", "".join(pkg_for_install), " "*(38-len(name)), sbo_ver, " "*(
|
||||
14-len(sbo_ver)), SC + arch + EC, " "*(9-len(arch)), "SBo"
|
||||
print("Installing for dependencies:")
|
||||
for dep in dependencies[:-1]:
|
||||
sbo_ver = sbo_version_pkg(dep)
|
||||
if find_package(dep + sp, pkg_path):
|
||||
print " ", colors.GREEN + dep + colors.ENDC, " "*(38-len(
|
||||
dep)), sbo_ver, " "*(14-len(sbo_ver)), arch, " "*(9-len(arch)), "SBo"
|
||||
dep)), sbo_ver, " "*(14-len(sbo_ver)), SC + arch + EC, " "*(9-len(arch)), "SBo"
|
||||
pkg_sum += 1
|
||||
else:
|
||||
print " ", colors.RED + dep + colors.ENDC, " "*(38-len(
|
||||
dep)), sbo_ver, " "*(14-len(sbo_ver)), arch, " "*(9-len(arch)), "SBo"
|
||||
dep)), sbo_ver, " "*(14-len(sbo_ver)), SC + arch + EC, " "*(9-len(arch)), "SBo"
|
||||
msg_pkg = "package"
|
||||
msg_2_pkg = msg_pkg
|
||||
if len(dependencies) > 1:
|
||||
|
|
|
@ -27,9 +27,9 @@ import subprocess
|
|||
|
||||
from colors import colors
|
||||
from functions import get_file
|
||||
from __metadata__ import tmp, pkg_path, slpkg_tmp, sp
|
||||
from messages import pkg_not_found, pkg_found, view_sbo, template
|
||||
from __metadata__ import build, sbo_tag, sbo_filetype, build_path
|
||||
from __metadata__ import (tmp, build, sbo_tag, sbo_filetype, build_path,
|
||||
pkg_path, slpkg_tmp, sp)
|
||||
|
||||
from pkg.build import build_package
|
||||
from pkg.find import find_package
|
||||
|
|
|
@ -44,7 +44,7 @@ def install(slack_pkg):
|
|||
dwn_list, comp_size, uncomp_size = [], [], []
|
||||
install_all, package_name, package_location = [], [], []
|
||||
tmp_path = slpkg_tmp + "packages/"
|
||||
pkg_sum, arch = 0, ""
|
||||
pkg_sum, arch, SC, EC = 0, "", "", ""
|
||||
if not os.path.exists(tmp_path):
|
||||
if not os.path.exists(slpkg_tmp):
|
||||
os.mkdir(slpkg_tmp)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# url_read.py
|
||||
# url_read.py file is part of slpkg.
|
||||
|
||||
# Copyright 2014 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
|
||||
# All rights reserved.
|
||||
|
@ -10,7 +10,7 @@
|
|||
|
||||
# https://github.com/dslackw/slpkg
|
||||
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# Slpkg is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# version.py
|
||||
# version.py file is part of slpkg.
|
||||
|
||||
# Copyright 2014 Dimitris Zlatanidis <d.zlatanidis@gmail.com>
|
||||
# All rights reserved.
|
||||
|
@ -10,7 +10,7 @@
|
|||
|
||||
# https://github.com/dslackw/slpkg
|
||||
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# Slpkg is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
@ -30,4 +30,3 @@ def prog_version():
|
|||
print ("Version : {}".format(__version__))
|
||||
print ("Licence : {}".format(__license__))
|
||||
print ("Email : {}".format(__email__))
|
||||
|
||||
|
|
Loading…
Reference in a new issue