mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Updated for build and --repository option
This commit is contained in:
parent
a0d4491dfd
commit
b961911c0d
2 changed files with 11 additions and 4 deletions
|
@ -66,7 +66,7 @@ Edit the configuration /etc/slpkg/slpkg.toml file.
|
|||
.P
|
||||
.B -b, build
|
||||
.RS
|
||||
Builds the Slackbuilds scripts and adds them to the /tmp directory.
|
||||
Builds the Slackbuilds scripts and add the packages to the '/tmp' directory.
|
||||
.RE
|
||||
.P
|
||||
.B -i, install
|
||||
|
@ -185,7 +185,8 @@ Download files in parallel to speed up the process.
|
|||
Switches the default repository and set the repository you want to work with.
|
||||
Make sure that you have been enabling the repository in the file '/etc/slpkg/repositories.toml'.
|
||||
Repo pattern '*' supported only with: '-s, search' option.
|
||||
(to be used with: -u, update, -c, check-updates, -U, upgrade, -i, install, -d, download, -s, search, -t, tracking, -e, dependees, -w, view)
|
||||
(to be used with: -u, update, -c, check-updates, -U, upgrade, -b, build, -i, install, -d, download, -s, search,
|
||||
-t, tracking, -e, dependees, -w, view)
|
||||
.RE
|
||||
.P
|
||||
.BI "-z," "" " \-\-directory=" PATH "
|
||||
|
|
|
@ -171,6 +171,8 @@ class Argparse(Configs):
|
|||
self.flag_short_search,
|
||||
self.flag_no_silent,
|
||||
self.flag_short_no_silent,
|
||||
self.flag_repository,
|
||||
self.flag_short_repository,
|
||||
self.flag_parallel,
|
||||
self.flag_short_parallel
|
||||
],
|
||||
|
@ -596,8 +598,12 @@ class Argparse(Configs):
|
|||
self.check.exists_in_the_database(packages)
|
||||
self.check.is_package_unsupported(packages)
|
||||
|
||||
build = Slackbuilds(self.repository, self.data, packages, self.flags, mode=command)
|
||||
build.execute()
|
||||
if self.repository in list(self.repos.repositories.keys())[:2]:
|
||||
build = Slackbuilds(self.repository, self.data, packages, self.flags, mode=command)
|
||||
build.execute()
|
||||
else:
|
||||
self.usage.help_minimal(f"{self.prog_name}: invalid repository '{self.repository}'")
|
||||
|
||||
raise SystemExit()
|
||||
self.usage.help_short(1)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue