Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions errata/sources/distros/debian.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ def parse_debian_package_file_map(data, repo):
Source: 389-ds-base
Source-Version: 1.4.0.21-1+deb10u1
"""
global DSCs
parsing_dsc = False
for line in data.splitlines():
if line.startswith('Path:'):
Expand Down Expand Up @@ -236,7 +235,6 @@ def parse_debian_erratum_package(line, accepted_codenames):
def get_debian_dsc_package_list(package, version):
""" Get the package list from a DSC file for a given source package/version
"""
global DSCs
if not DSCs.get(package) or not DSCs[package].get(version):
return
package_list = DSCs[package][version].get('package_list')
Expand All @@ -247,7 +245,6 @@ def get_debian_dsc_package_list(package, version):
def fetch_debian_dsc_package_list(package, version):
""" Fetch the package list from a DSC file for a given source package/version
"""
global DSCs
if not DSCs.get(package) or not DSCs[package].get(version):
warning_message.send(sender=None, text=f'No DSC found for {package} {version}')
return
Expand Down
2 changes: 1 addition & 1 deletion patchman-client.spec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ License: GPLv3
URL: http://patchman.openbytes.ie
Source: %{expand:%%(pwd)}
BuildArch: noarch
Requires: curl which coreutils util-linux awk
Requires: curl which coreutils util-linux gawk

%define binary_payload w9.gzdio

Expand Down
2 changes: 2 additions & 0 deletions scripts/rpm-post-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ fi

systemctl enable httpd
systemctl restart httpd
systemctl enable redis
systemctl start redis

patchman-set-secret-key
chown apache /etc/patchman/local_settings.py
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ requires = /usr/bin/python3
python3-importlib-metadata
python3-cvss
python3-redis
redis-server
redis
celery
python3-django-celery-beat
python3-GitPython
Expand Down
6 changes: 2 additions & 4 deletions util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
def get_verbosity():
""" Get the global verbosity level
"""
global verbose
return verbose


Expand All @@ -57,7 +56,7 @@ def set_verbosity(value):
def create_pbar(ptext, plength, ljust=35, **kwargs):
""" Create a global progress bar if global verbose is True
"""
global pbar, verbose
global pbar
if verbose and plength > 0:
jtext = str(ptext).ljust(ljust)
pbar = tqdm(total=plength, desc=jtext, position=0, leave=True, ascii=' >=')
Expand All @@ -67,7 +66,7 @@ def create_pbar(ptext, plength, ljust=35, **kwargs):
def update_pbar(index, **kwargs):
""" Update the global progress bar if global verbose is True
"""
global pbar, verbose
global pbar
if verbose and pbar:
pbar.update(n=index-pbar.n)
if index >= pbar.total:
Expand All @@ -79,7 +78,6 @@ def fetch_content(response, text='', ljust=35):
""" Display a progress bar to fetch the request content if verbose is
True. Otherwise, just return the request content
"""
global verbose
if not response:
return
if verbose:
Expand Down