Skip to content

Commit 8aebcde

Browse files
authored
Merge pull request #674 from furlongm/develop
fix rpm building
2 parents bdcc3f9 + ceab20b commit 8aebcde

5 files changed

Lines changed: 6 additions & 9 deletions

File tree

errata/sources/distros/debian.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ def parse_debian_package_file_map(data, repo):
8484
Source: 389-ds-base
8585
Source-Version: 1.4.0.21-1+deb10u1
8686
"""
87-
global DSCs
8887
parsing_dsc = False
8988
for line in data.splitlines():
9089
if line.startswith('Path:'):
@@ -236,7 +235,6 @@ def parse_debian_erratum_package(line, accepted_codenames):
236235
def get_debian_dsc_package_list(package, version):
237236
""" Get the package list from a DSC file for a given source package/version
238237
"""
239-
global DSCs
240238
if not DSCs.get(package) or not DSCs[package].get(version):
241239
return
242240
package_list = DSCs[package][version].get('package_list')
@@ -247,7 +245,6 @@ def get_debian_dsc_package_list(package, version):
247245
def fetch_debian_dsc_package_list(package, version):
248246
""" Fetch the package list from a DSC file for a given source package/version
249247
"""
250-
global DSCs
251248
if not DSCs.get(package) or not DSCs[package].get(version):
252249
warning_message.send(sender=None, text=f'No DSC found for {package} {version}')
253250
return

patchman-client.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ License: GPLv3
88
URL: http://patchman.openbytes.ie
99
Source: %{expand:%%(pwd)}
1010
BuildArch: noarch
11-
Requires: curl which coreutils util-linux awk
11+
Requires: curl which coreutils util-linux gawk
1212

1313
%define binary_payload w9.gzdio
1414

scripts/rpm-post-install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ fi
1111

1212
systemctl enable httpd
1313
systemctl restart httpd
14+
systemctl enable redis
15+
systemctl start redis
1416

1517
patchman-set-secret-key
1618
chown apache /etc/patchman/local_settings.py

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ requires = /usr/bin/python3
2525
python3-importlib-metadata
2626
python3-cvss
2727
python3-redis
28-
redis-server
28+
redis
2929
celery
3030
python3-django-celery-beat
3131
python3-GitPython

util/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
def get_verbosity():
4444
""" Get the global verbosity level
4545
"""
46-
global verbose
4746
return verbose
4847

4948

@@ -57,7 +56,7 @@ def set_verbosity(value):
5756
def create_pbar(ptext, plength, ljust=35, **kwargs):
5857
""" Create a global progress bar if global verbose is True
5958
"""
60-
global pbar, verbose
59+
global pbar
6160
if verbose and plength > 0:
6261
jtext = str(ptext).ljust(ljust)
6362
pbar = tqdm(total=plength, desc=jtext, position=0, leave=True, ascii=' >=')
@@ -67,7 +66,7 @@ def create_pbar(ptext, plength, ljust=35, **kwargs):
6766
def update_pbar(index, **kwargs):
6867
""" Update the global progress bar if global verbose is True
6968
"""
70-
global pbar, verbose
69+
global pbar
7170
if verbose and pbar:
7271
pbar.update(n=index-pbar.n)
7372
if index >= pbar.total:
@@ -79,7 +78,6 @@ def fetch_content(response, text='', ljust=35):
7978
""" Display a progress bar to fetch the request content if verbose is
8079
True. Otherwise, just return the request content
8180
"""
82-
global verbose
8381
if not response:
8482
return
8583
if verbose:

0 commit comments

Comments
 (0)