[DRE-commits] [SCM] pkg-ruby-extras.git branch, master, updated. a95540b18278165a64624b5538f3b3a3339cc077
Antonio Terceiro
terceiro at softwarelivre.org
Fri Jul 29 07:46:41 UTC 2011
The following commit has been merged in the master branch:
commit a95540b18278165a64624b5538f3b3a3339cc077
Author: Antonio Terceiro <terceiro at softwarelivre.org>
Date: Fri Jul 29 00:46:02 2011 -0700
Also check for packages without changelog
Now the output is exactly the same as Lucas' initial version
diff --git a/pkg-overview b/pkg-overview
index c677d97..0fce108 100755
--- a/pkg-overview
+++ b/pkg-overview
@@ -51,7 +51,9 @@ def rmadison_data(packages)
end
def changelog_version(src)
- header = File.readlines(File.join(src, 'debian/changelog')).first
+ changelog = File.join(src, 'debian/changelog')
+ return nil unless File.exists?(changelog)
+ header = File.readlines(changelog).first
header =~ /\((.*)\)/
v = $1
v.gsub!(/^[0-9]+:/,'') # strip epoch
@@ -98,7 +100,7 @@ def compute_status(src, cv, tv, av)
end
# 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
+source_packages = ARGV.size > 0 ? ARGV : Dir.glob('*').select { |f| File.directory?(f) && f != 'wheezy-transition-tracker' }.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