summaryrefslogtreecommitdiffstats
path: root/dev-python/pytdeextensions/files/pytdeextensions-14.1.2-Fix-FTBFS-caused-by-mkpath-returning-nothing.patch
blob: 847da6ce599aa51c59c6131f00abfd8c5b567054 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
From ecdb0099bd14fc440a09219bd3df5672208c483c Mon Sep 17 00:00:00 2001
From: Michele Calgaro <michele.calgaro@yahoo.it>
Date: Fri, 17 Jan 2025 21:39:35 +0900
Subject: [PATCH 27/35] Fix FTBFS caused by 'mkpath' returning nothing

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
---
 setup.py            |  3 ++-
 src/tdedistutils.py | 18 ++++++++++++------
 2 files changed, 14 insertions(+), 7 deletions(-)

diff --git a/setup.py b/setup.py
index fa41586..8690ffa 100755
--- a/setup.py
+++ b/setup.py
@@ -318,6 +318,7 @@ class InstallLibpythonize(Command):
         return self.outfiles
 
     def mkpath(self, name, mode=0o777):
-        return dir_util.mkpath(name, mode, dry_run=self.dry_run)
+        dir_util.mkpath(name, mode, dry_run=self.dry_run)
+        return name
         
 main()
diff --git a/src/tdedistutils.py b/src/tdedistutils.py
index e8cd35e..8487708 100644
--- a/src/tdedistutils.py
+++ b/src/tdedistutils.py
@@ -373,7 +373,8 @@ class InstallApplicationDataAndLinks(install_data):
         self.outfiles.extend( [item+'c' for item in self.outfiles if item.endswith('.py')] )
 
     def mkpath(self, name, mode=0o777):
-        return dir_util.mkpath(name, mode, dry_run=self.dry_run)
+        dir_util.mkpath(name, mode, dry_run=self.dry_run)
+        return name
 
 ###########################################################################
 class InstallExecutableLinks(Command):
@@ -415,7 +416,8 @@ class InstallExecutableLinks(Command):
         return self.outfiles or []
 
     def mkpath(self, name, mode=0o777):
-        return dir_util.mkpath(name, mode, dry_run=self.dry_run)
+        dir_util.mkpath(name, mode, dry_run=self.dry_run)
+        return name
 
 ###########################################################################
 # Fix the --root option for the install_lib command.
@@ -1121,7 +1123,8 @@ class InstallKControlModule(Command):
         return self.outfiles or []
 
     def mkpath(self, name, mode=0o777):
-        return dir_util.mkpath(name, mode, dry_run=self.dry_run)
+        dir_util.mkpath(name, mode, dry_run=self.dry_run)
+        return name
 
 ###########################################################################
 class BuildDocbookHTML(Command):
@@ -1240,7 +1243,8 @@ class InstallDocbookHTML(Command):
         return self.outfiles or []
 
     def mkpath(self, name, mode=0o777):
-        return dir_util.mkpath(name, mode, dry_run=self.dry_run)
+        dir_util.mkpath(name, mode, dry_run=self.dry_run)
+        return name
 
 ###########################################################################
 class UpdateI18NMessages(Command):
@@ -1431,7 +1435,8 @@ class InstallI18NMessages(Command):
         return self.outfiles
 
     def mkpath(self, name, mode=0o777):
-        return dir_util.mkpath(name, mode, dry_run=self.dry_run)
+        dir_util.mkpath(name, mode, dry_run=self.dry_run)
+        return name
 
 
 ###########################################################################
@@ -2000,7 +2005,8 @@ class InstallTdeioslave(Command):
         return self.outfiles or []
 
     def mkpath(self, name, mode=0o777):
-        return dir_util.mkpath(name, mode, dry_run=self.dry_run)
+        dir_util.mkpath(name, mode, dry_run=self.dry_run)
+        return name
 
 ###########################################################################
 class CheckPyTQt(Command):
-- 
2.49.1