[DRE-commits] [librarian-puppet] 127/153: Omit versions with a deleted_at date

Stig Sandbeck Mathisen ssm at debian.org
Wed Jun 1 20:30:56 UTC 2016


This is an automated email from the git hooks/post-receive script.

ssm pushed a commit to branch master
in repository librarian-puppet.

commit 88efacffccdc26768542d7598f9721de2bc892cd
Author: Joshua B. Bussdieker <jbussdieker at brightroll.com>
Date:   Fri Jun 26 22:37:17 2015 -0700

    Omit versions with a deleted_at date
---
 lib/librarian/puppet/source/forge/repo_v3.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/librarian/puppet/source/forge/repo_v3.rb b/lib/librarian/puppet/source/forge/repo_v3.rb
index fe7d23a..37f57a1 100644
--- a/lib/librarian/puppet/source/forge/repo_v3.rb
+++ b/lib/librarian/puppet/source/forge/repo_v3.rb
@@ -16,7 +16,9 @@ module Librarian
           end
 
           def get_versions
-            get_module.releases.map{|r| r.version}
+            get_module.releases.map do |r|
+              r.version unless r.deleted_at != nil
+            end.compact
           end
 
           def dependencies(version)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/librarian-puppet.git



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