Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package plexus-languages for 
openSUSE:Factory checked in at 2021-02-18 20:40:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/plexus-languages (Old)
 and      /work/SRC/openSUSE:Factory/.plexus-languages.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "plexus-languages"

Thu Feb 18 20:40:35 2021 rev:4 rq:873203 version:1.0.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/plexus-languages/plexus-languages.changes        
2019-11-26 16:56:08.912171487 +0100
+++ 
/work/SRC/openSUSE:Factory/.plexus-languages.new.28504/plexus-languages.changes 
    2021-02-18 20:52:40.927454668 +0100
@@ -1,0 +2,6 @@
+Wed Feb 17 13:40:16 UTC 2021 - Matthias Gerstner <[email protected]>
+
+- generate-tarball.sh: use safe temporary directory, avoid accidental deletion
+  of *.jar, *.class in CWD.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ plexus-languages.spec ++++++
--- /var/tmp/diff_new_pack.A6CJEC/_old  2021-02-18 20:52:41.459455168 +0100
+++ /var/tmp/diff_new_pack.A6CJEC/_new  2021-02-18 20:52:41.463455171 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package plexus-languages
 #
-# Copyright (c) 2019 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed

++++++ generate-tarball.sh ++++++
--- /var/tmp/diff_new_pack.A6CJEC/_old  2021-02-18 20:52:41.507455213 +0100
+++ /var/tmp/diff_new_pack.A6CJEC/_new  2021-02-18 20:52:41.507455213 +0100
@@ -3,19 +3,24 @@
 
 name=plexus-languages
 version="$(sed -n 's/Version:\s*//p' *.spec)"
+pkgdir=`cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd`
+
+tmpdir=`mktemp -d`
+echo $tmpdir
+trap 'rm -r "$tmpdir"' EXIT
+pushd "$tmpdir" >/dev/null
 
 # RETRIEVE
 wget 
"https://github.com/codehaus-plexus/plexus-languages/archive/plexus-languages-${version}.tar.gz";
 -O "${name}-${version}.orig.tar.gz"
 
-rm -rf tarball-tmp
-mkdir tarball-tmp
-cd tarball-tmp
+treeroot="$tmpdir/tree"
+mkdir "$tmpdir/tree"
+pushd "$treeroot" >/dev/null
+
 tar xf "../${name}-${version}.orig.tar.gz"
 
 # CLEAN TARBALL
 find -name '*.jar' -delete
 find -name '*.class' -delete
 
-tar cJf "../${name}-${version}.tar.xz" *
-cd ..
-rm -r tarball-tmp "${name}-${version}.orig.tar.gz"
+tar cJf "$pkgdir/${name}-${version}.tar.xz" *

Reply via email to