mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
updated for version 2.0.4
This commit is contained in:
parent
bb0a96e53d
commit
0323a97f5f
6 changed files with 12 additions and 12 deletions
|
@ -68,9 +68,8 @@ Features
|
||||||
--------
|
--------
|
||||||
|
|
||||||
- Build third party packages from source with all dependencies
|
- Build third party packages from source with all dependencies
|
||||||
- Install packages through from official `Slackware <http://www.slackware.com/>`_ mirrors
|
- Grabs packages from repositories in real time
|
||||||
- Find and Download packages from `slackbuilds.org <http://slackbuilds.org/>`_
|
- Find and Download packages from repositories
|
||||||
- Grabs packages from slackbuilds.org in real time
|
|
||||||
- Automatic tool build and install packages
|
- Automatic tool build and install packages
|
||||||
- Check if your distribution is up to date
|
- Check if your distribution is up to date
|
||||||
- Remove packages with all dependencies
|
- Remove packages with all dependencies
|
||||||
|
@ -135,7 +134,7 @@ Command Line Tool Usage
|
||||||
-b, --list, [package...] --add, --remove add, remove packages in blacklist
|
-b, --list, [package...] --add, --remove add, remove packages in blacklist
|
||||||
-q, --list, [package...] --add, --remove add, remove packages in queue
|
-q, --list, [package...] --add, --remove add, remove packages in queue
|
||||||
--build, --install, --build-install build or install from queue
|
--build, --install, --build-install build or install from queue
|
||||||
-l, all, sbo, slack, noarch list of installed packages
|
-l, <repository>, all, noarch list of installed packages
|
||||||
-c, <repository> --upgrade --current check for updated packages
|
-c, <repository> --upgrade --current check for updated packages
|
||||||
-s, <repository> <package> --current download, build & install
|
-s, <repository> <package> --current download, build & install
|
||||||
-f, <package> find installed packages
|
-f, <package> find installed packages
|
||||||
|
|
|
@ -39,7 +39,7 @@ Optional arguments:
|
||||||
-b, --list, [package...] --add, --remove add, remove packages in blacklist
|
-b, --list, [package...] --add, --remove add, remove packages in blacklist
|
||||||
-q, --list, [package...] --add, --remove add, remove packages in queue
|
-q, --list, [package...] --add, --remove add, remove packages in queue
|
||||||
--build, --install, --build-install build or install from queue
|
--build, --install, --build-install build or install from queue
|
||||||
-l, all, sbo, slack, noarch list of installed packages
|
-l, <repository>, all, noarch list of installed packages
|
||||||
-c, <repository> --upgrade --current check for updated packages
|
-c, <repository> --upgrade --current check for updated packages
|
||||||
-s, <repository> <package> --current download, build & install
|
-s, <repository> <package> --current download, build & install
|
||||||
-f, <package> find installed packages
|
-f, <package> find installed packages
|
||||||
|
|
|
@ -40,7 +40,7 @@ def options():
|
||||||
"queue",
|
"queue",
|
||||||
" --build, --install, --build-install build or install from " +
|
" --build, --install, --build-install build or install from " +
|
||||||
"queue",
|
"queue",
|
||||||
" -l, all, sbo, slack, noarch list of installed " +
|
" -l, <repository>, all, noarch list of installed " +
|
||||||
"packages",
|
"packages",
|
||||||
" -c, <repository> --upgrade --current check for updated " +
|
" -c, <repository> --upgrade --current check for updated " +
|
||||||
"packages",
|
"packages",
|
||||||
|
|
|
@ -86,8 +86,9 @@ def main():
|
||||||
usage()
|
usage()
|
||||||
elif len(args) == 4 and args[0] == "-c":
|
elif len(args) == 4 and args[0] == "-c":
|
||||||
if args[1] == repository[1] and args[3] == "--current":
|
if args[1] == repository[1] and args[3] == "--current":
|
||||||
version = "current"
|
Patches("current").start()
|
||||||
Patches(version).start()
|
elif args[1] == repository[3] and args[3] == "--current":
|
||||||
|
OthersUpgrade(repository[3], "current").start()
|
||||||
else:
|
else:
|
||||||
usage()
|
usage()
|
||||||
elif len(args) == 3 and args[0] == "-s":
|
elif len(args) == 3 and args[0] == "-s":
|
||||||
|
|
|
@ -26,10 +26,10 @@ import sys
|
||||||
|
|
||||||
from sizes import units
|
from sizes import units
|
||||||
from repositories import Repo
|
from repositories import Repo
|
||||||
from init import Initialization
|
|
||||||
from blacklist import BlackList
|
|
||||||
from splitting import split_package
|
|
||||||
from messages import template
|
from messages import template
|
||||||
|
from blacklist import BlackList
|
||||||
|
from init import Initialization
|
||||||
|
from splitting import split_package
|
||||||
from colors import YELLOW, GREY, ENDC
|
from colors import YELLOW, GREY, ENDC
|
||||||
from __metadata__ import slpkg_tmp, pkg_path, lib_path
|
from __metadata__ import slpkg_tmp, pkg_path, lib_path
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ def delete(path, packages):
|
||||||
'''
|
'''
|
||||||
if os.listdir(path):
|
if os.listdir(path):
|
||||||
read = raw_input("Removal downloaded packages [Y/n]? ")
|
read = raw_input("Removal downloaded packages [Y/n]? ")
|
||||||
if read == "Y" or read == "y":
|
if read in ['y', 'Y']:
|
||||||
for pkg in packages:
|
for pkg in packages:
|
||||||
os.remove(path + pkg)
|
os.remove(path + pkg)
|
||||||
os.remove(path + pkg + ".asc")
|
os.remove(path + pkg + ".asc")
|
||||||
|
|
Loading…
Add table
Reference in a new issue