public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-perl r212 - up2date-ng/trunk/bin
@ 2009-08-14 18:41 Torsten Veller (tove)
  0 siblings, 0 replies; only message in thread
From: Torsten Veller (tove) @ 2009-08-14 18:41 UTC (permalink / raw
  To: gentoo-commits

Author: tove
Date: 2009-08-14 18:41:21 +0000 (Fri, 14 Aug 2009)
New Revision: 212

Modified:
   up2date-ng/trunk/bin/up2date-ng.pl
Log:
Fix check if package/version has been masked

Modified: up2date-ng/trunk/bin/up2date-ng.pl
===================================================================
--- up2date-ng/trunk/bin/up2date-ng.pl	2008-12-23 19:16:41 UTC (rev 211)
+++ up2date-ng/trunk/bin/up2date-ng.pl	2009-08-14 18:41:21 UTC (rev 212)
@@ -264,30 +264,30 @@
 		
 		if (defined $pmask{'package'}{$cat_pkg}{'operator'}) {
 			# - package is masked >
-			if ($pmask{'package'}{$tmp}{'operator'} eq "*") {
+			if ($pmask{'package'}{$cat_pkg}{'operator'} eq "*") {
 				# - all versions of this package have been masked - skip >
 				if ($DEBUG) { print "All versions of this package have been masked - skip\n"; }
 				next;
 			}
-			elsif ($pmask{'package'}{$tmp}{'operator'} eq ">=") {
+			elsif ($pmask{'package'}{$cat_pkg}{'operator'} eq ">=") {
 				# - all versions greater/equal than {'version'} have been masked >
-				if ($modules{'cpan_lc'}{$p_modulename} >= $pmask{'package'}{$tmp}{'version'}) {
+				if ($modules{'cpan_lc'}{$p_modulename} >= $pmask{'package'}{$cat_pkg}{'version'}) {
 					# - cpan version has been masked - skip >
 					if ($DEBUG) { print "cpan version has been masked - skip\n"; }
 					next;
 				}
 			}
-			elsif ($pmask{'package'}{$tmp}{'operator'} eq ">") {
+			elsif ($pmask{'package'}{$cat_pkg}{'operator'} eq ">") {
 				# - all versions greater than {'version'} have been masked >
-				if ($modules{'cpan_lc'}{$p_modulename} > $pmask{'package'}{$tmp}{'version'}) {
+				if ($modules{'cpan_lc'}{$p_modulename} > $pmask{'package'}{$cat_pkg}{'version'}) {
 					# - cpan version has been masked - skip >
 					if ($DEBUG) { print "cpan version has been masked - skip\n"; }
 					next;
 				}
 			}
-			elsif ($pmask{'package'}{$tmp}{'operator'} eq "=") {
+			elsif ($pmask{'package'}{$cat_pkg}{'operator'} eq "=") {
 				# - this version has been masked >
-				if ($modules{'cpan_lc'}{$p_modulename} == $pmask{'package'}{$tmp}{'version'}) {
+				if ($modules{'cpan_lc'}{$p_modulename} == $pmask{'package'}{$cat_pkg}{'version'}) {
 					# - cpan version has been masked - skip >
 					if ($DEBUG) { print "cpan version has been masked - skip\n"; }
 					next;




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-08-14 18:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-14 18:41 [gentoo-commits] gentoo-perl r212 - up2date-ng/trunk/bin Torsten Veller (tove)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox