mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-16 07:47:35 +01:00
Dixed for locals
This commit is contained in:
parent
efa2d40bb9
commit
b529a4491f
4 changed files with 10 additions and 5 deletions
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
- Bugfixes:
|
- Bugfixes:
|
||||||
* Fixed compare invalid packages version
|
* Fixed compare invalid packages version
|
||||||
|
* Fixed to work with locals repositories
|
||||||
|
|
||||||
### 5.0.3 - 01/04/2024
|
### 5.0.3 - 01/04/2024
|
||||||
- Updated:
|
- Updated:
|
||||||
|
|
|
@ -1,18 +1,21 @@
|
||||||
# This is the general repositories configuration file of slpkg:
|
# This is the general repositories configuration file of slpkg:
|
||||||
# /etc/slpkg/repositories.toml
|
# /etc/slpkg/repositories.toml
|
||||||
# Updated: 27/03/2024, Version: 5.0.0
|
# Updated: 04/04/2024, Version: 5.0.4
|
||||||
|
|
||||||
# Set 'true' to the variable {NAME}_REPO to enable a repository.
|
# Set 'true' to the variable {NAME}_REPO to enable a repository.
|
||||||
|
|
||||||
# If you are going to use a local repository, set the repository:
|
# If you are going to use a local repository, set the repository:
|
||||||
# as the example bellow:
|
# as the example bellow:
|
||||||
# ALIEN_REPO_LOCAL = ["file:///path/to/alien/repository/" ,"15.0/", "x86_64/"]
|
# ALIEN_REPO_LOCAL = ["file:///path/to/alien/repository/",
|
||||||
|
# "15.0/", "x86_64/"]
|
||||||
# A binary local repository will must contain the files:
|
# A binary local repository will must contain the files:
|
||||||
# ChangeLog.txt, PACKAGES.TXT and CHECKSUMS.md5
|
# ChangeLog.txt, PACKAGES.TXT and CHECKSUMS.md5
|
||||||
# A SlackBuilds repository will must contain the files:
|
# A SlackBuilds repository will must contain the files:
|
||||||
# SLACKBUILDS.TXT and ChangeLog.txt
|
# SLACKBUILDS.TXT and ChangeLog.txt
|
||||||
# After the mirror changed, you should update the database, run:
|
# After the mirror changed, you should update the database, run:
|
||||||
# slpkg update
|
# slpkg update
|
||||||
|
# Note: Do not delete the mirror, it is using to synchronize
|
||||||
|
# with the local repo.
|
||||||
|
|
||||||
# DO NOT CHANGE THE PATTERN OF THE MIRRORS, CHANGE ONLY WHAT YOU WANT.
|
# DO NOT CHANGE THE PATTERN OF THE MIRRORS, CHANGE ONLY WHAT YOU WANT.
|
||||||
# For alien and Slackware -current users should be:
|
# For alien and Slackware -current users should be:
|
||||||
|
|
|
@ -63,7 +63,7 @@ class CheckUpdates(Configs):
|
||||||
self.repos.repositories[repo]['changelog_txt'])
|
self.repos.repositories[repo]['changelog_txt'])
|
||||||
repo_chg_txt: str = (f"{self.repos.repositories[repo]['mirror'][0]}"
|
repo_chg_txt: str = (f"{self.repos.repositories[repo]['mirror'][0]}"
|
||||||
f"{self.repos.repositories[repo]['changelog_txt']}")
|
f"{self.repos.repositories[repo]['changelog_txt']}")
|
||||||
repo_data_file: Path = Path(self.repos.repositories_path, repo, self.repos.data_json)
|
repo_data_file: Path = Path(self.repos.repositories[repo]['path'], self.repos.data_json)
|
||||||
|
|
||||||
if not repo_data_file.is_file():
|
if not repo_data_file.is_file():
|
||||||
self.compare[repo]: dict = True
|
self.compare[repo]: dict = True
|
||||||
|
|
|
@ -25,10 +25,11 @@ class LoadData(Configs):
|
||||||
if repository == '*':
|
if repository == '*':
|
||||||
for repo, item in self.repos.repositories.items():
|
for repo, item in self.repos.repositories.items():
|
||||||
if item['enable']: # Check if the repository is enabled
|
if item['enable']: # Check if the repository is enabled
|
||||||
json_data_file: Path = Path(f'{self.repos.repositories_path}/{repo}', self.repos.data_json)
|
json_data_file: Path = Path(self.repos.repositories[repo]['path'], self.repos.data_json)
|
||||||
data[repo] = self.read_data_file(json_data_file)
|
data[repo] = self.read_data_file(json_data_file)
|
||||||
else:
|
else:
|
||||||
json_data_file: Path = Path(f'{self.repos.repositories_path}/{repository}', self.repos.data_json)
|
json_data_file: Path = Path(self.repos.repositories[repository]['path'], self.repos.data_json)
|
||||||
|
|
||||||
data: dict = self.read_data_file(json_data_file)
|
data: dict = self.read_data_file(json_data_file)
|
||||||
|
|
||||||
blacklist: tuple = self.black.packages()
|
blacklist: tuple = self.black.packages()
|
||||||
|
|
Loading…
Reference in a new issue