[PC-BSD Commits] r12741 - pcbsd/current/src-sh/pbi-manager

svn at pcbsd.org svn at pcbsd.org
Sun Sep 11 12:30:34 PDT 2011


Author: kris
Date: 2011-09-11 12:30:34 -0700 (Sun, 11 Sep 2011)
New Revision: 12741

Modified:
   pcbsd/current/src-sh/pbi-manager/pbi-manager
Log:

Don't save the finished timestamp until we are completely done with fetching
and updating index files



Modified: pcbsd/current/src-sh/pbi-manager/pbi-manager
===================================================================
--- pcbsd/current/src-sh/pbi-manager/pbi-manager	2011-09-11 19:23:14 UTC (rev 12740)
+++ pcbsd/current/src-sh/pbi-manager/pbi-manager	2011-09-11 19:30:34 UTC (rev 12741)
@@ -4712,9 +4712,8 @@
 		return
 	fi
 
-	# Move the uncompressed file, and save the timestamp
+	# Move the uncompressed file
 	mv "${_tmpPbiIndex}" "${_pbiIndex}" >/dev/null 2>/dev/null
-	date +%s > ${_pbiIndexTime}
 
 	# Wait a sec
  	sleep 1
@@ -4736,6 +4735,9 @@
 		echo "Finished updating index ${_pbiIndex}"
 	fi
 
+	# Save the time that we are done
+	date +%s > ${_pbiIndexTime}
+
 }
 
 # Check if we need to update any repository icons



More information about the Commits mailing list