[DRE-commits] [SCM] wheezy-transition-tracker.git branch, master, updated. dafaba6539ba902e9653354158fd33a505799663

Paul van Tilburg paulvt at debian.org
Fri May 11 17:42:59 UTC 2012


The following commit has been merged in the master branch:
commit dafaba6539ba902e9653354158fd33a505799663
Author: Paul van Tilburg <paulvt at debian.org>
Date:   Fri May 11 19:42:56 2012 +0200

    Add support for an optional local sources.list to contain only unstable

diff --git a/pending.rb b/pending.rb
index a4119a1..a8deb1c 100644
--- a/pending.rb
+++ b/pending.rb
@@ -1,6 +1,9 @@
 # XXX This script must be in a Debian sid box, with apt and apt-file databases
 # up to date.
 
+# If your sources.list contains more than unstable, please supply a local
+# sources.list file only containing an entry for unstable.
+
 team_packages_cache = '/tmp/pkg-ruby-extras.packages'
 if File.exists?(team_packages_cache)
   $team_packages = open(team_packages_cache).read.split
@@ -48,4 +51,8 @@ end
 
 search :wrong_name, 'aptitude search "~n^lib.*-ruby !~D^ruby- ~Aunstable" -F %p'
 
-search :wrong_install_location, 'apt-file -s sources.list -l search /usr/lib/ruby/1'
+if FileTest.readable "sources.list"
+  search :wrong_install_location, 'apt-file -s sources.list -l search /usr/lib/ruby/1'
+else
+  search :wrong_install_location, 'apt-file -l search /usr/lib/ruby/1'
+end

-- 
wheezy-transition-tracker.git



More information about the Pkg-ruby-extras-commits mailing list