Revision: 7372 http://sourceforge.net/p/ipcop/svn/7372 Author: owes Date: 2014-03-24 20:31:26 +0000 (Mon, 24 Mar 2014) Log Message: ----------- Modify to list package rootfile for new files.
Modified Paths: -------------- ipcop/trunk/tools/comp_md5.pl Modified: ipcop/trunk/tools/comp_md5.pl =================================================================== --- ipcop/trunk/tools/comp_md5.pl 2014-03-24 19:11:42 UTC (rev 7371) +++ ipcop/trunk/tools/comp_md5.pl 2014-03-24 20:31:26 UTC (rev 7372) @@ -132,15 +132,16 @@ if (!defined($md5_previousversion{$file})) { if (defined($update{$file})) { print OUTLIST "NEWUPD $file\n"; + next; } else { - print OUTLIST "NEW $file\n"; + # NEW. Output later because we do not have rootfile yet. } - next; } + else { + next if ($md5_version{$file} eq $md5_previousversion{$file}); + } - next if ($md5_version{$file} eq $md5_previousversion{$file}); - if (defined($update{$file})) { # This one is different but we already have it in update print OUTLIST "UPDATE $file\n"; @@ -175,7 +176,12 @@ $rootfile = `basename $rootfile`; chomp($rootfile); } - printf OUTLIST "DIFF %-60s %s\n", $file, $rootfile; + if (!defined($md5_previousversion{$file})) { + printf OUTLIST "NEW %-60s %s\n", $file, $rootfile; + } + else { + printf OUTLIST "DIFF %-60s %s\n", $file, $rootfile; + } } close (OUTLIST); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Ipcop-svn mailing list Ipcop-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ipcop-svn