[SCM] ci-tooling packaging branch, master, updated. 2a64552e66790fa35c1ac025e80c87ced7504f6f
Harald Sitter
apachelogger-guest at moszumanska.debian.org
Wed Dec 9 15:52:47 UTC 2015
Gitweb-URL: http://git.debian.org/?p=pkg-kde/ci-tooling.git;a=commitdiff;h=9db5b32
The following commit has been merged in the master branch:
commit 9db5b32bc0706733798577ee48be6b0c29f67605
Author: Harald Sitter <sitter at kde.org>
Date: Wed Dec 9 16:49:44 2015 +0100
make sure we create .config if it does not exist
---
lib/lp.rb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/lp.rb b/lib/lp.rb
index 4372efd..e22585a 100644
--- a/lib/lp.rb
+++ b/lib/lp.rb
@@ -16,6 +16,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+require 'fileutils'
require 'json'
require 'ostruct'
require 'net/http'
@@ -109,6 +110,7 @@ module Launchpad
token_hash = token_from_file(conf)
unless token_hash
token_hash = request_token
+ FileUtils.mkpath(File.dirname(conf))
File.write(conf, JSON.fast_generate(token_hash))
end
token
--
ci-tooling packaging
More information about the pkg-kde-commits
mailing list