freeze break request: update permissions to .transifexrc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there,

For several weeks (I don't really know when transifex-client has been
updated on the builders), we got issues pulling POs for the websites.

Too errors was introduced by the transifex-client update:
- it has to use https now (fixed with previous patch)
- .transifexrc has to be readable and writable now (only readable before).
  Please see the first patch here.

I am also doing an other commit to improve the pulling script.. In order
to send us errors.. And to correct the hostname.

Pretty simple and used only for websites.

Thanks,

-- 
Kévin Raymond
(Shaiton)
From d2e05717b017cd712355c2d0310942f936d33e64 Mon Sep 17 00:00:00 2001
From: Kevin Raymond <shaiton@xxxxxxxxxxxxxxxxx>
Date: Wed, 26 Jun 2013 21:27:49 +0000
Subject: [PATCH] Increasing .transifexrc permissions to 600

Since v0.9, this file need to be writable.
---
 modules/transifex/manifests/init.pp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/transifex/manifests/init.pp b/modules/transifex/manifests/init.pp
index 4ed0697..3d645cb 100644
--- a/modules/transifex/manifests/init.pp
+++ b/modules/transifex/manifests/init.pp
@@ -15,7 +15,7 @@ class transifex::client {
     file { "/var/lib/transifex-client/.transifexrc":
         owner   => "apache",
         group   => "apache",
-        mode    => 0400,
+        mode    => 0600,
         content => template("transifex/client/transifexrc.erb"),
     }
 
-- 
1.7.2.1

From c645c443aa2b274c05b1571f73b7bb86952160ee Mon Sep 17 00:00:00 2001
From: Kevin Raymond <shaiton@xxxxxxxxxxxxxxxxx>
Date: Wed, 26 Jun 2013 21:35:17 +0000
Subject: [PATCH 2/2] syncTranslation.sh does not trash errors.

Also updated the hostname to point to .com domain.
---
 modules/fedora-web/files/syncTranslations.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/fedora-web/files/syncTranslations.sh b/modules/fedora-web/files/syncTranslations.sh
index 52e367c..7644b41 100644
--- a/modules/fedora-web/files/syncTranslations.sh
+++ b/modules/fedora-web/files/syncTranslations.sh
@@ -13,7 +13,7 @@ init()
   # init
   [ -d .tx ] || mkdir .tx
   echo "[main]" > .tx/config
-  echo "host = https://www.transifex.net"; >> .tx/config
+  echo "host = https://www.transifex.com"; >> .tx/config
 
   # configure
   tx set --auto-remote https://fedora.transifex.com/projects/p/fedora-web/
@@ -24,6 +24,6 @@ cd $HOME
 [ -f .tx/config ] || init
 [ -d $PO_DIR ] || mkdir $PO_DIR
 
-tx -q pull -a --minimum-perc 10 >& /dev/null
+tx -q pull -a --minimum-perc 10 1> /dev/null
 
 rsync -az translations/* $PO_DIR
-- 
1.7.2.1

Attachment: pgpOcnOTnZO_A.pgp
Description: PGP signature

_______________________________________________
infrastructure mailing list
infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux