[DRE-commits] [gem2deb] 01/03: gem2deb, dh-make-ruby: add -o/--offline option
Antonio Terceiro
terceiro at moszumanska.debian.org
Tue Jul 18 13:17:57 UTC 2017
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository gem2deb.
commit 5404dfc6406ad38176c10423f6f123f5ef463b4a
Author: Antonio Terceiro <terceiro at debian.org>
Date: Mon Jul 10 07:43:07 2017 -0300
gem2deb, dh-make-ruby: add -o/--offline option
---
bin/dh-make-ruby | 8 ++++++++
bin/gem2deb | 8 ++++++++
debian/changelog | 2 ++
3 files changed, 18 insertions(+)
diff --git a/bin/dh-make-ruby b/bin/dh-make-ruby
index 4c1ad02..e0476e5 100755
--- a/bin/dh-make-ruby
+++ b/bin/dh-make-ruby
@@ -51,6 +51,10 @@ optparse = OptionParser.new do |opts|
opts.on('', '--no-wnpp-check', 'prevent dh-make-ruby from checking wnpp reports') do
options[:do_wnpp_check] = false
end
+
+ opts.on('-o', '--offline', 'Do not access the internet for anything') do
+ options[:do_wnpp_check] = false
+ end
end
optparse.parse!
@@ -121,6 +125,10 @@ Prevents B<dh-make-ruby> to check wnpp reports to get the number of a possible
ITP (intend to package) bug report. By default, B<dh-make-ruby> does check these
reports, which requires an Internet access.
+=item B<-o>, B<--offline>
+
+Prevents B<dh-make-ruby> from accessing the internet at all.
+
=back
=head1 SEE ALSO
diff --git a/bin/gem2deb b/bin/gem2deb
index 99cd54a..a360d04 100755
--- a/bin/gem2deb
+++ b/bin/gem2deb
@@ -70,6 +70,10 @@ optparse = OptionParser.new do |opts|
dh_make_ruby_options[:do_wnpp_check] = false
end
+ opts.on('-o', '--offline', 'Do not access the internet for anything') do
+ dh_make_ruby_options[:do_wnpp_check] = false
+ end
+
end
optparse.parse!
@@ -190,6 +194,10 @@ Prevents B<dh-make-ruby> to check wnpp reports to get the number of a possible
ITP (intend to package) bug report. By default, B<dh-make-ruby> does check these
reports, which requires an Internet access.
+=item B<-o>, B<--offline>
+
+Prevents B<dh-make-ruby> from accessing the internet at all.
+
=item B<-h>, B<--help>
Displays B<gem2deb> usage information.
diff --git a/debian/changelog b/debian/changelog
index 7e40637..a2b049c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ gem2deb (0.35) UNRELEASED; urgency=medium
* dh-make-ruby: bump debian/compat template to 10 (Closes: #867741)
* Gem2Deb::Metadata:
- use debian/gemspec as gemspec if it exists (Closes: #867739)
+ * gem2deb, dh-make-ruby: add -o/--offline option to prevent any access to
+ the internet (including but not limited to checking wnpp)
-- Antonio Terceiro <terceiro at debian.org> Sat, 01 Jul 2017 19:46:54 -0300
--
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