[PC-BSD Commits] r21237 - pcbsd/current/src-sh/pc-updatemanager
svn at pcbsd.org
svn at pcbsd.org
Wed Jan 30 07:07:58 PST 2013
Author: kris
Date: 2013-01-30 15:07:58 +0000 (Wed, 30 Jan 2013)
New Revision: 21237
Modified:
pcbsd/current/src-sh/pc-updatemanager/pc-updatemanager
Log:
Add EVENT_PIPE to pc-updatemanager, will be used to get PKGNG data
into GUI
Modified: pcbsd/current/src-sh/pc-updatemanager/pc-updatemanager
===================================================================
--- pcbsd/current/src-sh/pc-updatemanager/pc-updatemanager 2013-01-30 14:58:04 UTC (rev 21236)
+++ pcbsd/current/src-sh/pc-updatemanager/pc-updatemanager 2013-01-30 15:07:58 UTC (rev 21237)
@@ -438,6 +438,14 @@
update_pkgs()
{
+ # Running from a GUI?
+ if [ -n "$PCFETCHGUI" ] ; then
+ # Setup EVENT_PIPE
+ EVENT_PIPE="/tmp/.pkg.$$.pipe"
+ mkfifo $EVENT_PIPE
+ echo "EVENT_PIPE: $EVENT_PIPE"
+ fi
+
# Start the package update!
pkg upgrade -y
result=$?
@@ -445,6 +453,11 @@
# Lets now re-extract our overlay data to grab any adjusted port files
pc-extractoverlay >/dev/null 2>/dev/null
+ # Cleanup EVENT_PIPE
+ if [ -n "$PCFETCHGUI" ] ; then
+ rm $EVENT_PIPE
+ fi
+
if [ $result -ne 0 ] ; then
echo "Failed updating..."
fi
More information about the Commits
mailing list