From 4455d6808cc1a4f602d073af9dd747e8a9f12b88 Mon Sep 17 00:00:00 2001 From: blundellc Date: Sat, 13 Sep 2008 13:28:29 +0000 Subject: [PATCH] fix umask to 002 git-svn-id: svn://svn.r-forge.r-project.org/svnroot/cran2deb@138 edb9625f-4e0d-4859-8d74-9fd3b1da38cb --- pkg/trunk/R/build.R | 6 +++--- pkg/trunk/exec/repopulate | 2 +- pkg/trunk/exec/update | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/trunk/R/build.R b/pkg/trunk/R/build.R index 9fcc8d7..4ca1923 100644 --- a/pkg/trunk/R/build.R +++ b/pkg/trunk/R/build.R @@ -36,7 +36,7 @@ build <- function(name,extra_deps,force=F) { file.remove(Sys.glob(file.path(pbuilder_results,'*.upload'))) # make mini-dinstall generate the skeleton of the archive - ret = log_system('umask 022;mini-dinstall --batch -c',dinstall_config) + ret = log_system('umask 002;mini-dinstall --batch -c',dinstall_config) if (ret != 0) { fail('failed to create archive') } @@ -52,7 +52,7 @@ build <- function(name,extra_deps,force=F) { srcdep = pkgname_as_debian(dep,binary=F) notice('uploading',srcdep) - ret = log_system('umask 022;dput','-c',shQuote(dput_config),'local' + ret = log_system('umask 002;dput','-c',shQuote(dput_config),'local' ,changesfile(srcdep)) if (ret != 0) { fail('upload of dependency failed! maybe you did not build it first?') @@ -61,7 +61,7 @@ build <- function(name,extra_deps,force=F) { build_debian(pkg) # upload the package - ret = log_system('umask 022;dput','-c',shQuote(dput_config),'local' + ret = log_system('umask 002;dput','-c',shQuote(dput_config),'local' ,changesfile(pkg$srcname,pkg$debversion)) if (ret != 0) { fail('upload failed!') diff --git a/pkg/trunk/exec/repopulate b/pkg/trunk/exec/repopulate index ea10800..ab3ea60 100755 --- a/pkg/trunk/exec/repopulate +++ b/pkg/trunk/exec/repopulate @@ -3,7 +3,7 @@ ## DOC: repopulate the cran2deb database and configurations from a new cran2deb release ## DOC: -umask 022 +umask 002 root=$1 shift for x in $(find /etc/cran2deb/ -type f -name '*.in'); do diff --git a/pkg/trunk/exec/update b/pkg/trunk/exec/update index bcd74a7..7bcc78f 100755 --- a/pkg/trunk/exec/update +++ b/pkg/trunk/exec/update @@ -5,7 +5,7 @@ ## DOC: force a full update of the cran2deb cache and database ## DOC: -umask 022 +umask 002 root=$1 shift mkdir -p /var/cache/cran2deb/results || exit 1 -- 2.39.2