Skip to content

Commit 0f9a293

Browse files
authored
Merge branch 'main' into p4-install
2 parents 8428327 + 807e5de commit 0f9a293

File tree

7 files changed

+23
-20
lines changed

7 files changed

+23
-20
lines changed

debian/copyright

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Source: https://github.com/furlongm/patchman
66
Files: *
77
Copyright: 2011-2012 VPAC http://www.vpac.org
88
2013-2021 Marcus Furlong <[email protected]>
9-
License: GPL-3.0
9+
License: GPL-3.0-only
1010
This package is free software; you can redistribute it and/or modify
1111
it under the terms of the GNU General Public License as published by
1212
the Free Software Foundation; version 3 only.

hosts/templatetags/report_alert.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
1-
# Copyright 2016-2021 Marcus Furlong <[email protected]>
1+
# Copyright 2016-2025 Marcus Furlong <[email protected]>
22
#
33
# This file is part of Patchman.
44
#
55
# Patchman is free software: you can redistribute it and/or modify
66
# it under the terms of the GNU General Public License as published by
7-
# the Free Software Foundation, either version 3 of the License, or
8-
# (at your option) any later version.
7+
# the Free Software Foundation, version 3 only.
98
#
109
# Patchman is distributed in the hope that it will be useful,
1110
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1211
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1312
# GNU General Public License for more details.
1413
#
1514
# You should have received a copy of the GNU General Public License
16-
# along with Patchman If not, see <http://www.gnu.org/licenses/>.
15+
# along with Patchman. If not, see <http://www.gnu.org/licenses/>
1716

1817
from datetime import timedelta
1918

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Django==4.2.24
1+
Django==4.2.25
22
django-taggit==4.0.0
33
django-extensions==3.2.3
44
django-bootstrap3==23.1
@@ -15,7 +15,7 @@ python-magic==0.4.27
1515
gitpython==3.1.44
1616
tenacity==8.2.3
1717
celery==5.4.0
18-
redis==5.2.1
18+
redis==6.4.0
1919
django-celery-beat==2.7.0
2020
tqdm==4.67.1
2121
cvss==3.4

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python3
22
#
3-
# Copyright 2013-2021 Marcus Furlong <[email protected]>
3+
# Copyright 2013-2025 Marcus Furlong <[email protected]>
44
#
55
# This file is part of Patchman.
66
#

util/__init__.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import magic
2121
import zlib
2222
import lzma
23+
import os
2324
from datetime import datetime, timezone
2425
from enum import Enum
2526
from hashlib import md5, sha1, sha256, sha512
@@ -28,17 +29,23 @@
2829
from time import time
2930
from tqdm import tqdm
3031

31-
from patchman.signals import error_message, info_message, debug_message
32-
3332
from django.utils.timezone import make_aware
3433
from django.utils.dateparse import parse_datetime
3534
from django.conf import settings
3635

36+
from patchman.signals import error_message, info_message, debug_message
3737

3838
pbar = None
3939
verbose = None
4040
Checksum = Enum('Checksum', 'md5 sha sha1 sha256 sha512')
4141

42+
http_proxy = os.getenv('http_proxy')
43+
https_proxy = os.getenv('https_proxy')
44+
proxies = {
45+
'http': http_proxy,
46+
'https': https_proxy,
47+
}
48+
4249

4350
def get_verbosity():
4451
""" Get the global verbosity level
@@ -113,7 +120,7 @@ def get_url(url, headers={}, params={}):
113120
response = None
114121
try:
115122
debug_message.send(sender=None, text=f'Trying {url} headers:{headers} params:{params}')
116-
response = requests.get(url, headers=headers, params=params, stream=True, timeout=30)
123+
response = requests.get(url, headers=headers, params=params, stream=True, proxies=proxies, timeout=30)
117124
debug_message.send(sender=None, text=f'{response.status_code}: {response.headers}')
118125
if response.status_code in [403, 404]:
119126
return response

util/filterspecs.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
# Copyright 2010 VPAC
2-
# Copyright 2014-2021 Marcus Furlong <[email protected]>
2+
# Copyright 2014-2025 Marcus Furlong <[email protected]>
33
#
44
# This file is part of Patchman.
55
#
66
# Patchman is free software: you can redistribute it and/or modify
77
# it under the terms of the GNU General Public License as published by
8-
# the Free Software Foundation, either version 3 of the License, or
9-
# (at your option) any later version.
8+
# the Free Software Foundation, version 3 only.
109
#
1110
# Patchman is distributed in the hope that it will be useful,
1211
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1312
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1413
# GNU General Public License for more details.
1514
#
1615
# You should have received a copy of the GNU General Public License
17-
# along with Patchman If not, see <http://www.gnu.org/licenses/>.
16+
# along with Patchman. If not, see <http://www.gnu.org/licenses/>
1817

1918
from django.utils.safestring import mark_safe
2019
from django.db.models.query import QuerySet

util/templatetags/common.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
1-
# Copyright 2010 VPAC
2-
# Copyright 2013-2021 Marcus Furlong <[email protected]>
1+
# Copyright 2013-2025 Marcus Furlong <[email protected]>
32
#
43
# This file is part of Patchman.
54
#
65
# Patchman is free software: you can redistribute it and/or modify
76
# it under the terms of the GNU General Public License as published by
8-
# the Free Software Foundation, either version 3 of the License, or
9-
# (at your option) any later version.
7+
# the Free Software Foundation, version 3 only.
108
#
119
# Patchman is distributed in the hope that it will be useful,
1210
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1311
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1412
# GNU General Public License for more details.
1513
#
1614
# You should have received a copy of the GNU General Public License
17-
# along with Patchman If not, see <http://www.gnu.org/licenses/>.
15+
# along with Patchman. If not, see <http://www.gnu.org/licenses/>
1816

1917
import re
2018

0 commit comments

Comments
 (0)