mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-29 10:26:12 +01:00
Renamed to --repos flag
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
f9a2a983a9
commit
7f68aafe39
3 changed files with 8 additions and 7 deletions
|
@ -1,8 +1,9 @@
|
||||||
3.9.7 - 08/05/2022
|
3.9.7 - 09/05/2022
|
||||||
Fixed:
|
Fixed:
|
||||||
- Stderr error output
|
- Stderr error output
|
||||||
Updated:
|
Updated:
|
||||||
- Improve dependencies resolve speed
|
- Improve dependencies resolve speed
|
||||||
|
- Renamed --repositories to --repos flag
|
||||||
Bugfix:
|
Bugfix:
|
||||||
- Update custom repositories
|
- Update custom repositories
|
||||||
- Passing repositories manual
|
- Passing repositories manual
|
||||||
|
|
|
@ -48,10 +48,10 @@ Usage: slpkg [COMMANDS|OPTIONS] {repository|package...}
|
||||||
_Slackware package manager_______
|
_Slackware package manager_______
|
||||||
|
|
||||||
Commands:
|
Commands:
|
||||||
update, --repositories=[...] Run this command to update all
|
update, --repos=[...] Run this command to update all
|
||||||
the packages lists.
|
the packages lists.
|
||||||
|
|
||||||
upgrade, --repositories=[...] Delete and recreate all packages
|
upgrade, --repos=[...] Delete and recreate all packages
|
||||||
lists.
|
lists.
|
||||||
|
|
||||||
repo-add [repository name] [URL] Add custom repository.
|
repo-add [repository name] [URL] Add custom repository.
|
||||||
|
@ -175,8 +175,8 @@ def usage(repo, stderr):
|
||||||
"""Usage: slpkg [COMMANDS|OPTIONS] {repository|package...}
|
"""Usage: slpkg [COMMANDS|OPTIONS] {repository|package...}
|
||||||
|
|
||||||
Commands:
|
Commands:
|
||||||
[update, --repositories=[...]]
|
[update, --repos=[...]]
|
||||||
[upgrade, --repositories=[...]]
|
[upgrade, --repos=[...]]
|
||||||
[repo-add [repository name] [URL]]
|
[repo-add [repository name] [URL]]
|
||||||
[repo-remove [repository]]
|
[repo-remove [repository]]
|
||||||
[repo-enable]
|
[repo-enable]
|
||||||
|
|
|
@ -130,7 +130,7 @@ class ArgParse(BlackList):
|
||||||
if len(self.args) == 1 and self.args[0] == "update":
|
if len(self.args) == 1 and self.args[0] == "update":
|
||||||
update.run(repos="")
|
update.run(repos="")
|
||||||
elif (len(self.args) == 2 and self.args[0] == "update" and
|
elif (len(self.args) == 2 and self.args[0] == "update" and
|
||||||
self.args[1].startswith("--repositories=")):
|
self.args[1].startswith("--repos=")):
|
||||||
repos = self.args[1].split("=")[-1].split(",")
|
repos = self.args[1].split("=")[-1].split(",")
|
||||||
for rp in repos:
|
for rp in repos:
|
||||||
if rp not in self.meta.repositories:
|
if rp not in self.meta.repositories:
|
||||||
|
@ -146,7 +146,7 @@ class ArgParse(BlackList):
|
||||||
if len(self.args) == 1 and self.args[0] == "upgrade":
|
if len(self.args) == 1 and self.args[0] == "upgrade":
|
||||||
upgrade.run(repos="")
|
upgrade.run(repos="")
|
||||||
elif (len(self.args) == 2 and self.args[0] == "upgrade" and
|
elif (len(self.args) == 2 and self.args[0] == "upgrade" and
|
||||||
self.args[1].startswith("--repositories=")):
|
self.args[1].startswith("--repos=")):
|
||||||
repos = self.args[1].split("=")[-1].split(",")
|
repos = self.args[1].split("=")[-1].split(",")
|
||||||
for rp in repos:
|
for rp in repos:
|
||||||
if rp not in self.meta.repositories:
|
if rp not in self.meta.repositories:
|
||||||
|
|
Loading…
Reference in a new issue