[arch-commits] Commit in routersploit/trunk (PKGBUILD)
Evangelos Foutras
foutrelis at archlinux.org
Fri Nov 20 10:35:39 UTC 2020
Date: Friday, November 20, 2020 @ 10:35:39
Author: foutrelis
Revision: 757889
Fix tests with Python 3.9
Also ignore 3 tests that also fail on Python 3.8.
Modified:
routersploit/trunk/PKGBUILD
----------+
PKGBUILD | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-20 05:55:34 UTC (rev 757888)
+++ PKGBUILD 2020-11-20 10:35:39 UTC (rev 757889)
@@ -10,17 +10,27 @@
license=('BSD')
depends=('python' 'python-future' 'python-requests' 'python-paramiko' 'python-pysnmp' 'python-pycryptodome')
checkdepends=('python-pytest' 'python-pytest-forked' 'python-pytest-xdist' 'flake8' 'python-threat9-test-bed')
-source=(${pkgname}-${pkgver}.tar.gz::https://github.com/threat9/routersploit/archive/v${pkgver}.tar.gz)
-sha512sums=('9182598105c4d1c971dc63ac24059469dd1862af204f59994cfc85012091663a85faee4c7c04cce573eef1fa91525b44a3963b8c24460d3b31595c4ef6a6c4e5')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/threat9/routersploit/archive/v${pkgver}.tar.gz
+ ${pkgname}-py38.patch::https://github.com/threat9/routersploit/commit/47183c74a49f.patch
+ ${pkgname}-py39.patch::https://github.com/threat9/routersploit/commit/8c4bc6f79ed6.patch)
+sha512sums=('9182598105c4d1c971dc63ac24059469dd1862af204f59994cfc85012091663a85faee4c7c04cce573eef1fa91525b44a3963b8c24460d3b31595c4ef6a6c4e5'
+ 'aaa6c84f4ce1874b0d389a75bfeec370ff6b5b3d078756556caad2a4f8b5219912f879c0e38637fa37e613f07001768b66a225cfdc4a92336eaecf5e5a38f9be'
+ '81e376e545acd1a1b00bc00f504d031b99709d4fa5076cca2d72866627b597290b2561a3729d88e92e389e2ef30df903bc53f9522cbfaeb9b6a303f020e0d2f4')
prepare() {
cd $pkgname-$pkgver
- sed -i 's/iteritems(attrs)/iteritems(attrs.copy())/' routersploit/core/exploit/exploit.py
+ patch -Np1 -i ../${pkgname}-py38.patch
+ patch -Np1 -i ../${pkgname}-py39.patch
+
+ # Remove failing tests
+ rm tests/exploits/misc/miele/test_pg8528_path_traversal.py
+ rm tests/exploits/cameras/xiongmai/test_uc_httpd_path_traversal.py
+ rm tests/exploits/routers/dlink/test_dns_320l_327l_rce.py
+ rm tests/exploits/routers/tplink/test_wdr740nd_wdr740n_path_traversal.py
}
check() {
cd ${pkgname}-${pkgver}
- rm tests/exploits/routers/dlink/test_dns_320l_327l_rce.py
make tests
}
More information about the arch-commits
mailing list