summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2014-08-06 20:11:00 +0200
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2014-08-06 20:21:10 +0200
commit780a9b98220a89b48a29526a18a79d365e7f82ce (patch)
tree2bb16e81c4f881f86fc9c3336aff013494e474b2
parentbump product version to 4.3.1.1.0+ (diff)
downloadcore-780a9b98220a89b48a29526a18a79d365e7f82ce.tar.gz
core-780a9b98220a89b48a29526a18a79d365e7f82ce.zip
fdo#82137 don't include working directory in tarballs
as this changes permissions when extracting, and those are restrictive, since it is a temporary directory Change-Id: I41b28fe405e5915faeea944eb3cfdbed518ac55d (cherry picked from commit 5ca2b6fca9eb975886f6796e6086ddf79be387d5) (cherry picked from commit 47cb8a41ffe7221814307ad72e58bdc735c1812c)
-rwxr-xr-xbin/lo-pack-sources4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/lo-pack-sources b/bin/lo-pack-sources
index de6a4be9abb4..3571638cc45f 100755
--- a/bin/lo-pack-sources
+++ b/bin/lo-pack-sources
@@ -13,6 +13,7 @@ my %module_dirname = (
"help" => "helpcontent2",
"translations" => "translations"
);
+my $lo_topdir_name;
# get libreoffice-build version from the given libreoffice-build sources
sub get_config_version($)
@@ -159,7 +160,7 @@ sub generate_tarball($$$)
print "Creating $tarball...";
# generate the tarball in the current directory; avoid "./" prefix in the stored paths; show progress
- system ("tar -c $tar_compress_option -f $tarball -C $dir --checkpoint=500 --checkpoint-action=exec=\"echo -n .\" --transform=\"s|^\./||\" .") &&
+ system ("tar -c $tar_compress_option -f $tarball -C $dir --checkpoint=500 --checkpoint-action=exec=\"echo -n .\" $lo_topdir_name") &&
die "Error: releasing failed: $!\n";
print "\n";
}
@@ -351,7 +352,6 @@ my $state_release_version;
my $lo_core_tempdir;
my $force;
my $verbose=1;
-my $lo_topdir_name;
my %module_tarball_name;
###################