From 75f0e873371d6fbac5b1f2bfc9453107bf8ca23517cd5ddf908449eeae3c8465 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Wed, 2 Oct 2024 16:12:54 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/javapackages-tools?expand=0&rev=152 --- 0001-Fix-tests-with-python-3.4.patch | 36 ------------------- ...llow-missing-components-with-abs2rel.patch | 22 ------------ 2 files changed, 58 deletions(-) delete mode 100644 0001-Fix-tests-with-python-3.4.patch delete mode 100644 0002-Allow-missing-components-with-abs2rel.patch diff --git a/0001-Fix-tests-with-python-3.4.patch b/0001-Fix-tests-with-python-3.4.patch deleted file mode 100644 index 4f4887e..0000000 --- a/0001-Fix-tests-with-python-3.4.patch +++ /dev/null @@ -1,36 +0,0 @@ -From ee0c9644f137d697fc598a3f7bb974787e820731 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Fridrich=20=C5=A0trba?= -Date: Sun, 29 Sep 2024 10:59:57 +0200 -Subject: [PATCH 1/2] Fix tests with python 3.4 - ---- - test/test_rpmbuild.py | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff --git a/test/test_rpmbuild.py b/test/test_rpmbuild.py -index d64e40d2..8f2d45b7 100644 ---- a/test/test_rpmbuild.py -+++ b/test/test_rpmbuild.py -@@ -4,7 +4,6 @@ import re - import sys - import subprocess - import shutil --import glob - - from textwrap import dedent - -@@ -101,8 +100,9 @@ class Package(object): - os.remove('tmperr') - # RPM 4.19 and 4.20 use different BUILD directory structure, thus we search the filesystem - # to find the actual location of build subdir without reliance on particular structure -- self.buildpath = glob.glob('rpmbuild/BUILD/**/{name}-subdir'.format(name=self.__name), -- recursive=True)[0] -+ self.buildpath = [os.path.join(dirpath, d) -+ for dirpath, dirnames, files in os.walk('rpmbuild/BUILD') -+ for d in dirnames if d.endswith('{name}-subdir'.format(name=self.__name))][0] - return (out, err, ret) - - def set_env(self, name, value): --- -2.46.1 - diff --git a/0002-Allow-missing-components-with-abs2rel.patch b/0002-Allow-missing-components-with-abs2rel.patch deleted file mode 100644 index 209b872..0000000 --- a/0002-Allow-missing-components-with-abs2rel.patch +++ /dev/null @@ -1,22 +0,0 @@ -From 5f5164c230f7a0bea9d727fd45dccb787b3ef653 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Fridrich=20=C5=A0trba?= -Date: Sun, 29 Sep 2024 11:48:03 +0200 -Subject: [PATCH 2/2] Allow missing components with abs2rel - ---- - bin/abs2rel | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/bin/abs2rel b/bin/abs2rel -index b0b85048..a06bab76 100755 ---- a/bin/abs2rel -+++ b/bin/abs2rel -@@ -36,4 +36,4 @@ if [ $# -ne 2 ]; then - exit 1 - fi - --exec realpath -s --relative-to="$2" "$1" -+exec realpath -m -s --relative-to="$2" "$1" --- -2.46.1 -