[DRE-commits] [gem2deb] 01/01: Rakefile: fix snapshot:install
Antonio Terceiro
terceiro at moszumanska.debian.org
Tue Dec 6 12:06:23 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository gem2deb.
commit 7e76d3da5634763061178487199cd9065ac8edbd
Author: Antonio Terceiro <terceiro at debian.org>
Date: Tue Dec 6 10:05:25 2016 -0200
Rakefile: fix snapshot:install
---
Rakefile | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/Rakefile b/Rakefile
index f7f8e76..5e4ce9b 100644
--- a/Rakefile
+++ b/Rakefile
@@ -36,7 +36,7 @@ task :install do
end
desc "Builds a git snapshot package"
-task 'snapshot:build' do
+task 'snapshot:build', :install do |task,args|
if !system('git diff-index --quiet HEAD')
fail "Can't build package; you have uncommitted changes"
end
@@ -50,14 +50,17 @@ task 'snapshot:build' do
sh 'git commit -a -m snapshot-' + date
begin
sh 'DEB_BUILD_OPTIONS=nocheck gbp buildpackage --git-ignore-branch -us -uc'
+ if args[:install]
+ sh 'debi'
+ end
ensure
sh 'git checkout ' + branch
end
end
desc "Installs a git snapshot package"
-task 'snapshot:install' => 'snapshot:build' do
- sh 'debi'
+task 'snapshot:install' do
+ Rake::Task['snapshot:build'].invoke(true)
end
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/gem2deb.git
More information about the Pkg-ruby-extras-commits
mailing list