mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Remove unnecessary argument ALL
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
aca14b32c5
commit
44d16569c1
4 changed files with 29 additions and 25 deletions
|
@ -258,7 +258,7 @@ Also you can check ChangeLog.txt for changes like:
|
||||||
From 1 repositories need 1 updating. Run the command 'slpkg update'.
|
From 1 repositories need 1 updating. Run the command 'slpkg update'.
|
||||||
|
|
||||||
|
|
||||||
$ slpkg -c ALL
|
$ slpkg --check
|
||||||
|
|
||||||
+==============================================================================
|
+==============================================================================
|
||||||
| Repository Status
|
| Repository Status
|
||||||
|
@ -786,7 +786,7 @@ Use the dialog utility to help you find the packages:
|
||||||
|
|
||||||
Load all repository:
|
Load all repository:
|
||||||
|
|
||||||
$ slpkg -n ALL --checklist
|
$ slpkg -n --checklist
|
||||||
Reading package lists...
|
Reading package lists...
|
||||||
|
|
||||||
.. image:: https://gitlab.com/dslackw/images/raw/master/slpkg/pythondialog5.png
|
.. image:: https://gitlab.com/dslackw/images/raw/master/slpkg/pythondialog5.png
|
||||||
|
@ -1186,7 +1186,7 @@ Build and install the packages that have added to the queue:
|
||||||
CEGUI
|
CEGUI
|
||||||
|
|
||||||
|
|
||||||
$ slpkg -q roxterm --remove (or 'slpkg -q ALL --remove' remove all packages)
|
$ slpkg -q roxterm --remove (or 'slpkg -q --remove' remove all packages)
|
||||||
|
|
||||||
Remove packages from queue:
|
Remove packages from queue:
|
||||||
|
|
||||||
|
@ -1220,7 +1220,7 @@ Add or remove the packages in blacklist file manually from
|
||||||
faac
|
faac
|
||||||
|
|
||||||
|
|
||||||
$ slpkg -b speex --remove (or 'slpkg -b ALL --remove' remove all packages)
|
$ slpkg -b speex --remove (or 'slpkg -b --remove' remove all packages)
|
||||||
|
|
||||||
Remove packages from blacklist:
|
Remove packages from blacklist:
|
||||||
|
|
||||||
|
|
22
man/slpkg.8
22
man/slpkg.8
|
@ -11,7 +11,7 @@
|
||||||
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
.\" GNU General Public License for more details.
|
.\" GNU General Public License for more details.
|
||||||
.\"
|
.\"
|
||||||
.TH Slpkg "21" "10" 2019" "slpkg"
|
.TH Slpkg "14" "01" 2019" "slpkg"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
Slpkg is a user-friendly package manager for Slackware installations
|
Slpkg is a user-friendly package manager for Slackware installations
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
@ -138,7 +138,7 @@ Additional options:
|
||||||
\fBslpkg\fP \fBdeps-status\fP \fB--graph=[type]\fP
|
\fBslpkg\fP \fBdeps-status\fP \fB--graph=[type]\fP
|
||||||
.PP
|
.PP
|
||||||
Print dependencies status used by packages. Prerequisite packages have been installed
|
Print dependencies status used by packages. Prerequisite packages have been installed
|
||||||
with the option "slpkg -s <repository> <packages>".
|
with the option "# slpkg -s <repository> <packages>".
|
||||||
.PP
|
.PP
|
||||||
Additional options:
|
Additional options:
|
||||||
.PP
|
.PP
|
||||||
|
@ -168,8 +168,8 @@ checksum from the configuration file.
|
||||||
\fBslpkg\fP \fB-b\fP <\fIname of packages\fP> \fB--add\fP, \fB--remove\fP, \fBlist\fP
|
\fBslpkg\fP \fB-b\fP <\fIname of packages\fP> \fB--add\fP, \fB--remove\fP, \fBlist\fP
|
||||||
.PP
|
.PP
|
||||||
Add, remove or listed packages from blacklist file. The settings here affect
|
Add, remove or listed packages from blacklist file. The settings here affect
|
||||||
all repositories. Remove all packages from blacklist use argument "ALL" for package
|
all repositories. Remove all packages from blacklist use argument like
|
||||||
like "# slpkg -b ALL --remove". Use asterisk "*" to match pagkages like "# slpkg -b
|
"# slpkg -b --remove". Use asterisk "*" to match pagkages like "# slpkg -b
|
||||||
py* --add", this add all installed packages with starts string "py" or "# slpkg -b
|
py* --add", this add all installed packages with starts string "py" or "# slpkg -b
|
||||||
multi:*multilib* --add", this add all multilib packages from repository "multi".
|
multi:*multilib* --add", this add all multilib packages from repository "multi".
|
||||||
|
|
||||||
|
@ -180,7 +180,7 @@ multi:*multilib* --add", this add all multilib packages from repository "multi".
|
||||||
.PP
|
.PP
|
||||||
Add, remove and listed sbo packages from queue. This argument is very useful if you want
|
Add, remove and listed sbo packages from queue. This argument is very useful if you want
|
||||||
to build and install multiple packages together. Note the correct order if there are
|
to build and install multiple packages together. Note the correct order if there are
|
||||||
dependencies. If you want to remove all the packages from the list run "# slpkg -q ALL --remove".
|
dependencies. If you want to remove all the packages from the list run "# slpkg -q --remove".
|
||||||
(these arguments only working for the sbo repository)
|
(these arguments only working for the sbo repository)
|
||||||
Build or install or build and install packages are queued.
|
Build or install or build and install packages are queued.
|
||||||
|
|
||||||
|
@ -213,7 +213,7 @@ directly with the official repository and so always you can have updated your sy
|
||||||
.PP
|
.PP
|
||||||
Additional options:
|
Additional options:
|
||||||
.PP
|
.PP
|
||||||
\fB-c ALL\fP : Check ChangeLog.txt files for changes.
|
\fB-c \fP : Check ChangeLog.txt files for changes.
|
||||||
.PP
|
.PP
|
||||||
\fB--upgrade\fP : Check and install packages for upgrade.
|
\fB--upgrade\fP : Check and install packages for upgrade.
|
||||||
.PP
|
.PP
|
||||||
|
@ -221,7 +221,7 @@ Additional options:
|
||||||
.PP
|
.PP
|
||||||
\fB--resolve-off\fP : Switch off automatic resolve dependencies.
|
\fB--resolve-off\fP : Switch off automatic resolve dependencies.
|
||||||
.PP
|
.PP
|
||||||
\fB--skip=[packages...]\fP : Skip packages from upgrade separate by comma like "slpkg -c sbo --skip=jdk,pep8,pip" (See REGEX).
|
\fB--skip=[packages...]\fP : Skip packages from upgrade separate by comma like "# slpkg -c sbo --skip=jdk,pep8,pip" (See REGEX).
|
||||||
.PP
|
.PP
|
||||||
\fB--checklist\fP : Enable dialog utility and checklist option. (Require python2-pythondialog)
|
\fB--checklist\fP : Enable dialog utility and checklist option. (Require python2-pythondialog)
|
||||||
|
|
||||||
|
@ -298,8 +298,8 @@ Additional options:
|
||||||
\fBslpkg\fP \fB-n\fP <\fIname of package\fP>, <\fI[pattern], --checklist\fP>, \fI--case-ins\fP
|
\fBslpkg\fP \fB-n\fP <\fIname of package\fP>, <\fI[pattern], --checklist\fP>, \fI--case-ins\fP
|
||||||
.PP
|
.PP
|
||||||
View complete slackbuilds.org site in your terminal. Read file, download,
|
View complete slackbuilds.org site in your terminal. Read file, download,
|
||||||
build or install etc. Use 'ALL' in [pattern] and "--checklist" additional option to load all
|
build or install etc. Use "--checklist" additional option to load all repository, example:
|
||||||
repository, example "slpkg -n ALL --checklist".
|
"# slpkg -n --checklist".
|
||||||
.PP
|
.PP
|
||||||
Additional options:
|
Additional options:
|
||||||
.PP
|
.PP
|
||||||
|
@ -327,7 +327,7 @@ More information please read "man upgradepkg".
|
||||||
Removes a previously installed Slackware package, while writing a progress report to
|
Removes a previously installed Slackware package, while writing a progress report to
|
||||||
the standard output. A package may be specified either by the full package name (as
|
the standard output. A package may be specified either by the full package name (as
|
||||||
you'd see listed in /var/log/packages/), or by the base package name. If installed
|
you'd see listed in /var/log/packages/), or by the base package name. If installed
|
||||||
packages with command "slpkg -s <repo> <packages>" then write a file in /var/log/slpkg/dep/
|
packages with command "# slpkg -s <repo> <packages>" then write a file in /var/log/slpkg/dep/
|
||||||
with all dependencies and it allows you can remove them all together.
|
with all dependencies and it allows you can remove them all together.
|
||||||
More information please read "man removepkg".
|
More information please read "man removepkg".
|
||||||
.PP
|
.PP
|
||||||
|
@ -439,7 +439,7 @@ Dimitris Zlatanidis <d.zlatanidis@gmail.com>
|
||||||
.SH HOMEPAGE
|
.SH HOMEPAGE
|
||||||
https://gitlab.com/dslackw/slpkg
|
https://gitlab.com/dslackw/slpkg
|
||||||
.SH COPYRIGHT
|
.SH COPYRIGHT
|
||||||
Copyright \(co 2014-2017 Dimitris Zlatanidis
|
Copyright \(co 2014-2019 Dimitris Zlatanidis
|
||||||
|
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
installpkg(8), upgradepkg(8), removepkg(8), pkgtool(8), slackpkg(8), explodepkg(8),
|
installpkg(8), upgradepkg(8), removepkg(8), pkgtool(8), slackpkg(8), explodepkg(8),
|
||||||
|
|
|
@ -309,13 +309,13 @@ class ArgParse(object):
|
||||||
else:
|
else:
|
||||||
Patches(skip, flag).start()
|
Patches(skip, flag).start()
|
||||||
elif self.args[1] == "sbo":
|
elif self.args[1] == "sbo":
|
||||||
SBoInstall(sbo_upgrade(skip, flag), flag).start(is_upgrade=True)
|
SBoInstall(sbo_upgrade(skip, flag), flag).start(
|
||||||
|
is_upgrade=True)
|
||||||
else:
|
else:
|
||||||
usage(self.args[1])
|
usage(self.args[1])
|
||||||
elif len(self.args) == 2 and self.args[0] in options:
|
elif len(self.args) == 1 and self.args[0] in options:
|
||||||
if self.args[1] == "ALL":
|
|
||||||
Updates(repo="").ALL()
|
Updates(repo="").ALL()
|
||||||
else:
|
elif len(self.args) == 2 and self.args[0] in options:
|
||||||
Updates(self.args[1]).run()
|
Updates(self.args[1]).run()
|
||||||
elif (len(self.args) >= 2 and self.args[0] in options and
|
elif (len(self.args) >= 2 and self.args[0] in options and
|
||||||
self.args[1] not in self.meta.repositories):
|
self.args[1] not in self.meta.repositories):
|
||||||
|
@ -440,6 +440,10 @@ class ArgParse(object):
|
||||||
if (len(self.args) == 2 and self.args[0] in options and
|
if (len(self.args) == 2 and self.args[0] in options and
|
||||||
"sbo" in self.meta.repositories):
|
"sbo" in self.meta.repositories):
|
||||||
SBoNetwork(self.args[1], flag).view()
|
SBoNetwork(self.args[1], flag).view()
|
||||||
|
elif (len(self.args) == 1 and self.args[0] in options and
|
||||||
|
"sbo" in self.meta.repositories and
|
||||||
|
additional_options[0] in flag):
|
||||||
|
SBoNetwork("", flag).view()
|
||||||
else:
|
else:
|
||||||
usage("sbo")
|
usage("sbo")
|
||||||
|
|
||||||
|
@ -463,8 +467,8 @@ class ArgParse(object):
|
||||||
flag[0] in self.args):
|
flag[0] in self.args):
|
||||||
self.args.remove(flag[0])
|
self.args.remove(flag[0])
|
||||||
blacklist.add(self.args[1:])
|
blacklist.add(self.args[1:])
|
||||||
elif (len(self.args) == 3 and self.args[0] in options and
|
elif (len(self.args) == 2 and self.args[0] in options and
|
||||||
"ALL" in self.args and flag[1] in self.args):
|
flag[1] in self.args):
|
||||||
self.args.remove(flag[1])
|
self.args.remove(flag[1])
|
||||||
blacklist.remove(blacklist.get_black())
|
blacklist.remove(blacklist.get_black())
|
||||||
elif (len(self.args) > 2 and self.args[0] in options and
|
elif (len(self.args) > 2 and self.args[0] in options and
|
||||||
|
@ -496,8 +500,8 @@ class ArgParse(object):
|
||||||
flag[0] in self.args):
|
flag[0] in self.args):
|
||||||
self.args.remove(flag[0])
|
self.args.remove(flag[0])
|
||||||
queue.add(self.args[1:])
|
queue.add(self.args[1:])
|
||||||
elif (len(self.args) == 3 and self.args[0] in options and
|
elif (len(self.args) == 2 and self.args[0] in options and
|
||||||
"ALL" in self.args and flag[1] in self.args):
|
flag[1] in self.args):
|
||||||
self.args.remove(flag[1])
|
self.args.remove(flag[1])
|
||||||
queue.remove(queue.packages())
|
queue.remove(queue.packages())
|
||||||
elif (len(self.args) > 2 and self.args[0] in options and
|
elif (len(self.args) > 2 and self.args[0] in options and
|
||||||
|
|
|
@ -312,7 +312,7 @@ class SBoNetwork(object):
|
||||||
"""Using dialog and checklist option
|
"""Using dialog and checklist option
|
||||||
"""
|
"""
|
||||||
data = []
|
data = []
|
||||||
if self.name == "ALL":
|
if not self.name:
|
||||||
data = self.data
|
data = self.data
|
||||||
else:
|
else:
|
||||||
for name in self.data:
|
for name in self.data:
|
||||||
|
|
Loading…
Add table
Reference in a new issue