vfmg: vfmg - DR17: don't read .existing file if --full-regen speci...

sparky sparky at pld-linux.org
Thu Apr 20 20:08:10 CEST 2006


Author: sparky                       Date: Thu Apr 20 18:08:10 2006 GMT
Module: vfmg                          Tag: HEAD
---- Log message:
- DR17: don't read .existing file if --full-regen specified

---- Files affected:
vfmg:
   vfmg (1.91 -> 1.92) 

---- Diffs:

================================================================
Index: vfmg/vfmg
diff -u vfmg/vfmg:1.91 vfmg/vfmg:1.92
--- vfmg/vfmg:1.91	Thu Apr 20 20:03:01 2006
+++ vfmg/vfmg	Thu Apr 20 20:08:05 2006
@@ -1547,7 +1547,9 @@
 	}
 
 	$DR{existing} = {};
-	if (open F_IN, "$opt{icons_dir}/.existing") {
+	if (not $opt{full_regen} and
+		open F_IN, "$opt{icons_dir}/.existing") {
+
 		my $icon = "broken?";
 		while (my $line = <F_IN>) {
 			if ( $line =~ /^\[(.*)\]$/ ) {
@@ -1576,7 +1578,7 @@
 	foreach my $icon ( keys %{$DR{existing}} ) {
 		print F_OUT "[$icon]\n";
 		foreach my $entry ( keys %{$DR{existing}->{$icon}} ) {
-			print F_OUT "$entry:    $DR{existing}->{$icon}->{$entry}\n"
+			print F_OUT "$entry:	$DR{existing}->{$icon}->{$entry}\n"
 				if defined $DR{existing}->{$icon}->{$entry};
 		}
 	}
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/vfmg/vfmg?r1=1.91&r2=1.92&f=u



More information about the pld-cvs-commit mailing list