[DRE-commits] [SCM] pkg-ruby-extras.git branch, master, updated. aac2be6f2015ef2fc242a1e8310f95157e440a30

Antonio Terceiro terceiro at softwarelivre.org
Fri Jul 29 06:49:57 UTC 2011


The following commit has been merged in the master branch:
commit 4bb4cb5c1701a237252437547573c24370229ace
Author: Antonio Terceiro <terceiro at softwarelivre.org>
Date:   Thu Jul 28 23:07:19 2011 -0700

    Check specific packages passing names in command line

diff --git a/pkg-overview b/pkg-overview
index 6787770..d1c32b4 100755
--- a/pkg-overview
+++ b/pkg-overview
@@ -97,8 +97,8 @@ def compute_status(src, cv, tv, av)
   return '0 ERROR: unknown status'
 end
 
-# get all source packages
-source_packages = (Dir::entries('.') - ['.', '..', '.git', 'wheezy-transition-tracker']).select { |f| File::directory?(f) }.sort
+# get source packages from command line, or all available ones of none passed.
+source_packages = ARGV.size > 0 ? ARGV : Dir.glob('*/debian/changelog').map { |f| File.dirname(File.dirname(f)) }.sort
 #
 # get versions from tags
 tag_ver = source_packages.pmap { |src| { src => tag_version(src) } }.hash_merge

-- 
pkg-ruby-extras.git



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