[SCM] ci-tooling packaging branch, master, updated. faf0ecbd407ad42818801321ac6d03f774976842

Rohan Garg rohangarg-guest at moszumanska.debian.org
Fri Dec 5 16:11:56 UTC 2014


Gitweb-URL: http://git.debian.org/?p=pkg-kde/ci-tooling.git;a=commitdiff;h=faf0ecb

The following commit has been merged in the master branch:
commit faf0ecbd407ad42818801321ac6d03f774976842
Author: Rohan Garg <rohan at kde.org>
Date:   Fri Dec 5 17:11:41 2014 +0100

    Make sure we install the build deps before continuing
---
 dci/source.rb | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/dci/source.rb b/dci/source.rb
index fafae46..e1bc61e 100644
--- a/dci/source.rb
+++ b/dci/source.rb
@@ -1,8 +1,10 @@
 require 'date'
 require 'fileutils'
 require_relative '../lib/debian/changelog'
+require_relative '../lib/debian/control'
 
 system("dcmd rm -v #{ARGV[1]}/build/*.changes")
+system("apt-get update && apt-get dist-upgrade")
 
 release = `lsb_release -r`.split(':')[-1].strip
 
@@ -10,6 +12,13 @@ Dir.chdir(ARGV[1]) do
     # Get source name and what not
     Dir.chdir('packaging') do
         $changelog = Changelog.new
+        $control = DebianControl.new
+        $control.parse!
+        build_depends = []
+        $control.source['build-depends'].each do |dep|
+            build_depends << dep.name
+        end
+        system("apt-get install #{build_depends.join(' ')}")
     end
 
     source_name = $changelog.name

-- 
ci-tooling packaging



More information about the pkg-kde-commits mailing list