SVN: toys/fun/queue_notify.pl

sparky sparky at pld-linux.org
Fri Apr 23 22:12:58 CEST 2010


Author: sparky
Date: Fri Apr 23 22:12:57 2010
New Revision: 11342

Modified:
   toys/fun/queue_notify.pl
Log:
- fixes


Modified: toys/fun/queue_notify.pl
==============================================================================
--- toys/fun/queue_notify.pl	(original)
+++ toys/fun/queue_notify.pl	Fri Apr 23 22:12:57 2010
@@ -77,7 +77,7 @@
 }
 
 my $printed = {};
-my $last_time = time() - 1600;
+my $last_time = time() - 600;
 sub update
 {
 	my $xml = shift;
@@ -148,12 +148,13 @@
 				next if $ftime and $ftime == $some_done;
 			}
 	
-			system "notify-send", $pre, 
+			system "notify-send", "-t", "8000", $pre, 
 				"<span color='green'>" . $requester . "</span> *\n" .
 				"$rpm<b>:</b>\n - " . ( join "\n - ", @status );
 		}
 		$last_time = $time if $done_so_far;
 	}
+	$printed = \%printed;
 }
 
 for (;;) {


More information about the pld-cvs-commit mailing list