[SCM] ci-tooling packaging branch, master, updated. 8fe5785fd2e67dd6583216e9c0f1d930731cb587
Harald Sitter
apachelogger-guest at moszumanska.debian.org
Tue May 12 08:29:49 UTC 2015
Gitweb-URL: http://git.debian.org/?p=pkg-kde/ci-tooling.git;a=commitdiff;h=eeed5ad
The following commit has been merged in the master branch:
commit eeed5ad1da6266475395f7b0874be1aab6e62a2f
Author: Harald Sitter <sitter at kde.org>
Date: Tue May 12 10:22:27 2015 +0200
assume yes to all queries when meddlign with repos
---
lib/apt.rb | 2 ++
test/test_apt.rb | 4 ++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/lib/apt.rb b/lib/apt.rb
index d4362ac..f2a3d58 100644
--- a/lib/apt.rb
+++ b/lib/apt.rb
@@ -22,12 +22,14 @@ module Apt
def add
args = []
+ args << '-y'
args << @name
system('add-apt-repository', *args)
end
def remove
args = []
+ args << '-y'
args << '-r'
args << @name
system('add-apt-repository', *args)
diff --git a/test/test_apt.rb b/test/test_apt.rb
index 156e67d..ac8dee8 100644
--- a/test/test_apt.rb
+++ b/test/test_apt.rb
@@ -8,11 +8,11 @@ class AptTest < TestCase
def test_repo
repo = Apt::Repository.new('ppa:yolo')
- assert_system(['add-apt-repository', 'ppa:yolo']) do
+ assert_system(['add-apt-repository', '-y', 'ppa:yolo']) do
repo.add
end
- assert_system(['add-apt-repository', '-r', 'ppa:yolo']) do
+ assert_system(['add-apt-repository', '-y', '-r', 'ppa:yolo']) do
repo.remove
end
end
--
ci-tooling packaging
More information about the pkg-kde-commits
mailing list