[SCM] patch-parser packaging branch, master, updated. 520aa896e8f3512977dc29c25de0f08afe738073
Harald Sitter
apachelogger-guest at moszumanska.debian.org
Mon May 4 09:56:44 UTC 2015
Gitweb-URL: http://git.debian.org/?p=pkg-kde/patch-parser.git;a=commitdiff;h=520aa89
The following commit has been merged in the master branch:
commit 520aa896e8f3512977dc29c25de0f08afe738073
Author: Harald Sitter <sitter at kde.org>
Date: Mon May 4 11:56:40 2015 +0200
add logging to render
---
render.rb | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/render.rb b/render.rb
index 49944da..ce341ad 100644
--- a/render.rb
+++ b/render.rb
@@ -1,14 +1,19 @@
require 'git'
require 'haml'
+require 'logger'
require_relative 'lib/patch'
require_relative 'lib/repo'
BRANCHES = %w(kubuntu_vivid_archive kubuntu_unstable)
+ at log = Logger.new(STDOUT)
+ at log.progname = 'render'
+
Dir.mkdir('cache') unless Dir.exist?('cache')
Dir.chdir('cache') do
ARGV.each do |repo|
+ @log.info "Cloning/Fetching #{repo}"
repo_name = repo.split(':')[-1].split('/')[-1].split('.')[0]
Git::Base.clone(repo, repo_name) unless Dir.exist?(repo_name)
g = Git::Base.open(repo_name)
@@ -18,13 +23,14 @@ Dir.chdir('cache') do
BRANCHES.each do |branch|
repos = []
ARGV.each do |repo|
+ @log.info "Rendering #{repo} [#{branch}]..."
# FIXME: code copy from above
repo_name = repo.split(':')[-1].split('/')[-1].split('.')[0]
g = Git::Base.open(repo_name)
begin
g.checkout("origin/#{branch}")
rescue Git::GitExecuteError
- warn "#{repo_name} has no #{branch} branch"
+ @log.warn "#{repo_name} has no #{branch} branch"
next
end
patches = []
--
patch-parser packaging
More information about the pkg-kde-commits
mailing list