Update of /cvsroot/fink/pdb
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv16874

Modified Files:
        create-finkdb.pl 
Log Message:
remove it in each index command

Index: create-finkdb.pl
===================================================================
RCS file: /cvsroot/fink/pdb/create-finkdb.pl,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- create-finkdb.pl    19 Mar 2009 17:19:19 -0000      1.35
+++ create-finkdb.pl    19 Mar 2009 18:45:44 -0000      1.36
@@ -156,10 +156,6 @@
 }
 
 mkpath($tempdir);
-if (-d $xmldir) {
-       rmtree($xmldir);
-}
-
 open(LOCKFILE, '>>' . $tempdir . '/create-finkdb.lock') or die "could not open 
lockfile for append: $!";
 if (not flock(LOCKFILE, LOCK_EX | LOCK_NB)) {
        die "Another process is running.";
@@ -302,6 +298,12 @@
        my $basepath = get_basepath($release);
        mkpath($basepath . '/var/lib/fink');
 
+       my $xmlpath = get_xmlpath($release);
+       if (-d $xmlpath) {
+               rmtree($xmlpath);
+       }
+       mkpath($xmlpath);
+
        undef $Fink::Package::packages;
        undef $Fink::Config::config;
 
@@ -507,9 +509,6 @@
                        return;
                }
 
-               my $xmlpath = get_xmlpath($release);
-               mkpath($xmlpath);
-
                my $outputfile = $xmlpath . '/' . package_id($package_info) . 
'.xml';
                my $xml;
 


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to