mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-27 09:58:10 +01:00
Updated for case-sensitive
This commit is contained in:
parent
45ecfcded8
commit
f65d8a25bf
4 changed files with 14 additions and 14 deletions
|
@ -55,9 +55,9 @@ PROGRESS_SPINNER = "pixel"
|
||||||
# Default is green. [green/violet/yellow/blue/cyan/grey/red]
|
# Default is green. [green/violet/yellow/blue/cyan/grey/red]
|
||||||
SPINNER_COLOR = "green"
|
SPINNER_COLOR = "green"
|
||||||
|
|
||||||
# Enable or disable case-insensitive pattern matching.
|
# Enable or disable case-sensitive pattern matching.
|
||||||
# Default is false. [true/false]
|
# Default is true. [true/false]
|
||||||
CASE_INSENSITIVE = false
|
CASE_SENSITIVE = true
|
||||||
|
|
||||||
# Slackware command for install packages, instead, you can use 'installpkg'.
|
# Slackware command for install packages, instead, you can use 'installpkg'.
|
||||||
# Normally upgradepkg only upgrades packages that are already installed
|
# Normally upgradepkg only upgrades packages that are already installed
|
||||||
|
|
|
@ -182,7 +182,7 @@ Download files in parallel to speed up the process.
|
||||||
.P
|
.P
|
||||||
.B -m, --no-case
|
.B -m, --no-case
|
||||||
.RS
|
.RS
|
||||||
Case-insensitive pattern matching packages.
|
Case-sensitive pattern matching packages.
|
||||||
(to be used with: -b, build, -i, install, -d, download, -s, search, -f, find, -w, view, -t, tracking, -e, dependees)
|
(to be used with: -b, build, -i, install, -d, download, -s, search, -f, find, -w, view, -t, tracking, -e, dependees)
|
||||||
.RE
|
.RE
|
||||||
.P
|
.P
|
||||||
|
|
|
@ -46,7 +46,7 @@ class Configs:
|
||||||
spinning_bar: str = True
|
spinning_bar: str = True
|
||||||
progress_spinner: str = 'pixel'
|
progress_spinner: str = 'pixel'
|
||||||
spinner_color: str = 'green'
|
spinner_color: str = 'green'
|
||||||
case_insensitive: bool = False
|
case_sensitive: bool = True
|
||||||
|
|
||||||
proxy_address: str = str()
|
proxy_address: str = str()
|
||||||
proxy_username: str = str()
|
proxy_username: str = str()
|
||||||
|
@ -83,7 +83,7 @@ class Configs:
|
||||||
spinning_bar: str = config['SPINNING_BAR']
|
spinning_bar: str = config['SPINNING_BAR']
|
||||||
progress_spinner: str = config['PROGRESS_SPINNER']
|
progress_spinner: str = config['PROGRESS_SPINNER']
|
||||||
spinner_color: str = config['SPINNER_COLOR']
|
spinner_color: str = config['SPINNER_COLOR']
|
||||||
case_insensitive: bool = config['CASE_INSENSITIVE']
|
case_sensitive: bool = config['CASE_SENSITIVE']
|
||||||
proxy_address: str = config['PROXY_ADDRESS']
|
proxy_address: str = config['PROXY_ADDRESS']
|
||||||
proxy_username: str = config['PROXY_USERNAME']
|
proxy_username: str = config['PROXY_USERNAME']
|
||||||
proxy_password: str = config['PROXY_PASSWORD']
|
proxy_password: str = config['PROXY_PASSWORD']
|
||||||
|
|
|
@ -616,7 +616,7 @@ class Argparse(Configs):
|
||||||
self.check.is_database_empty()
|
self.check.is_database_empty()
|
||||||
packages: list = self.is_file_list_packages()
|
packages: list = self.is_file_list_packages()
|
||||||
|
|
||||||
if self.utils.is_option(self.flag_no_cases, self.flags) or self.case_insensitive:
|
if self.utils.is_option(self.flag_no_cases, self.flags) or not self.case_sensitive:
|
||||||
packages: list = self.utils.case_insensitive_pattern_matching(packages, self.data)
|
packages: list = self.utils.case_insensitive_pattern_matching(packages, self.data)
|
||||||
|
|
||||||
if self.utils.is_option(self.flag_searches, self.flags):
|
if self.utils.is_option(self.flag_searches, self.flags):
|
||||||
|
@ -643,7 +643,7 @@ class Argparse(Configs):
|
||||||
self.check.is_database_empty()
|
self.check.is_database_empty()
|
||||||
packages: list = self.is_file_list_packages()
|
packages: list = self.is_file_list_packages()
|
||||||
|
|
||||||
if self.utils.is_option(self.flag_no_cases, self.flags) or self.case_insensitive:
|
if self.utils.is_option(self.flag_no_cases, self.flags) or not self.case_sensitive:
|
||||||
packages: list = self.utils.case_insensitive_pattern_matching(packages, self.data)
|
packages: list = self.utils.case_insensitive_pattern_matching(packages, self.data)
|
||||||
|
|
||||||
if self.utils.is_option(self.flag_searches, self.flags):
|
if self.utils.is_option(self.flag_searches, self.flags):
|
||||||
|
@ -668,7 +668,7 @@ class Argparse(Configs):
|
||||||
self.check.is_database_empty()
|
self.check.is_database_empty()
|
||||||
packages: list = self.is_file_list_packages()
|
packages: list = self.is_file_list_packages()
|
||||||
|
|
||||||
if self.utils.is_option(self.flag_no_cases, self.flags) or self.case_insensitive:
|
if self.utils.is_option(self.flag_no_cases, self.flags) or not self.case_sensitive:
|
||||||
packages: list = self.utils.case_insensitive_pattern_matching(packages, self.data)
|
packages: list = self.utils.case_insensitive_pattern_matching(packages, self.data)
|
||||||
|
|
||||||
if self.utils.is_option(self.flag_searches, self.flags):
|
if self.utils.is_option(self.flag_searches, self.flags):
|
||||||
|
@ -703,7 +703,7 @@ class Argparse(Configs):
|
||||||
self.check.is_database_empty()
|
self.check.is_database_empty()
|
||||||
packages: list = self.is_file_list_packages()
|
packages: list = self.is_file_list_packages()
|
||||||
|
|
||||||
if self.utils.is_option(self.flag_no_cases, self.flags) or self.case_insensitive:
|
if self.utils.is_option(self.flag_no_cases, self.flags) or not self.case_sensitive:
|
||||||
packages: list = self.utils.case_insensitive_pattern_matching(packages, self.data)
|
packages: list = self.utils.case_insensitive_pattern_matching(packages, self.data)
|
||||||
|
|
||||||
if self.utils.is_option(self.flag_searches, self.flags):
|
if self.utils.is_option(self.flag_searches, self.flags):
|
||||||
|
@ -721,7 +721,7 @@ class Argparse(Configs):
|
||||||
self.check.is_database_empty()
|
self.check.is_database_empty()
|
||||||
packages: list = self.is_file_list_packages()
|
packages: list = self.is_file_list_packages()
|
||||||
|
|
||||||
if self.utils.is_option(self.flag_no_cases, self.flags) or self.case_insensitive:
|
if self.utils.is_option(self.flag_no_cases, self.flags) or not self.case_sensitive:
|
||||||
packages: list = self.utils.case_insensitive_pattern_matching(packages, self.data)
|
packages: list = self.utils.case_insensitive_pattern_matching(packages, self.data)
|
||||||
|
|
||||||
if self.utils.is_option(self.flag_searches, self.flags):
|
if self.utils.is_option(self.flag_searches, self.flags):
|
||||||
|
@ -745,7 +745,7 @@ class Argparse(Configs):
|
||||||
self.check.is_database_empty()
|
self.check.is_database_empty()
|
||||||
packages: list = self.is_file_list_packages()
|
packages: list = self.is_file_list_packages()
|
||||||
|
|
||||||
if self.utils.is_option(self.flag_no_cases, self.flags) or self.case_insensitive:
|
if self.utils.is_option(self.flag_no_cases, self.flags) or not self.case_sensitive:
|
||||||
packages: list = self.utils.case_insensitive_pattern_matching(packages, self.data)
|
packages: list = self.utils.case_insensitive_pattern_matching(packages, self.data)
|
||||||
|
|
||||||
if self.utils.is_option(self.flag_searches, self.flags):
|
if self.utils.is_option(self.flag_searches, self.flags):
|
||||||
|
@ -763,7 +763,7 @@ class Argparse(Configs):
|
||||||
self.check.is_database_empty()
|
self.check.is_database_empty()
|
||||||
packages: list = self.is_file_list_packages()
|
packages: list = self.is_file_list_packages()
|
||||||
|
|
||||||
if self.utils.is_option(self.flag_no_cases, self.flags) or self.case_insensitive:
|
if self.utils.is_option(self.flag_no_cases, self.flags) or not self.case_sensitive:
|
||||||
packages: list = self.utils.case_insensitive_pattern_matching(packages, self.data)
|
packages: list = self.utils.case_insensitive_pattern_matching(packages, self.data)
|
||||||
|
|
||||||
if self.utils.is_option(self.flag_searches, self.flags):
|
if self.utils.is_option(self.flag_searches, self.flags):
|
||||||
|
@ -783,7 +783,7 @@ class Argparse(Configs):
|
||||||
self.check.is_database_empty()
|
self.check.is_database_empty()
|
||||||
packages: list = self.is_file_list_packages()
|
packages: list = self.is_file_list_packages()
|
||||||
|
|
||||||
if self.utils.is_option(self.flag_no_cases, self.flags) or self.case_insensitive:
|
if self.utils.is_option(self.flag_no_cases, self.flags) or not self.case_sensitive:
|
||||||
packages: list = self.utils.case_insensitive_pattern_matching(packages, self.data)
|
packages: list = self.utils.case_insensitive_pattern_matching(packages, self.data)
|
||||||
|
|
||||||
if self.utils.is_option(self.flag_searches, self.flags):
|
if self.utils.is_option(self.flag_searches, self.flags):
|
||||||
|
|
Loading…
Reference in a new issue