[elbe-devel] [PATCH 2/5] elbepack: elbeproject: explicitly glob for changes file
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Mon Jul 15 12:04:29 CEST 2024
In the past repo.include() used a shell to invoke commands which took
care of expanding the glob.
Now that no shell is used anymore, an explicit glob is necessary.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
elbepack/elbeproject.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/elbepack/elbeproject.py b/elbepack/elbeproject.py
index 6f2356153494..09bdb3cb1fed 100644
--- a/elbepack/elbeproject.py
+++ b/elbepack/elbeproject.py
@@ -814,10 +814,10 @@ class ElbeProject:
'debian',
'control'))
- self.repo.include(os.path.join(self.builddir,
- pbuilderdir,
- 'result',
- '*.changes'))
+ self.repo.include(glob.glob(os.path.join(self.builddir,
+ pbuilderdir,
+ 'result',
+ '*.changes'))[0])
except subprocess.CalledProcessError:
logging.exception('Package fails to build.\n'
'Please make sure, that the submitted package '
--
2.45.2
More information about the elbe-devel
mailing list