public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Torsten Veller (tove)" <tove@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-perl r212 - up2date-ng/trunk/bin
Date: Fri, 14 Aug 2009 18:41:21 +0000	[thread overview]
Message-ID: <E1Mc1iL-0000ML-En@stork.gentoo.org> (raw)

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;




                 reply	other threads:[~2009-08-14 18:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1Mc1iL-0000ML-En@stork.gentoo.org \
    --to=tove@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox