From owner-svn-soc-all@FreeBSD.ORG Thu Jul 11 13:56:52 2013 Return-Path: Delivered-To: svn-soc-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7AC51D03 for ; Thu, 11 Jul 2013 13:56:52 +0000 (UTC) (envelope-from jmuniz@FreeBSD.org) Received: from socsvn.freebsd.org (socsvn.freebsd.org [IPv6:2001:1900:2254:206a::50:2]) by mx1.freebsd.org (Postfix) with ESMTP id 6AF1F1F03 for ; Thu, 11 Jul 2013 13:56:52 +0000 (UTC) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.14.7/8.14.7) with ESMTP id r6BDuq9R086178 for ; Thu, 11 Jul 2013 13:56:52 GMT (envelope-from jmuniz@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.14.7/8.14.6/Submit) id r6BDuqAn086176 for svn-soc-all@FreeBSD.org; Thu, 11 Jul 2013 13:56:52 GMT (envelope-from jmuniz@FreeBSD.org) Date: Thu, 11 Jul 2013 13:56:52 GMT Message-Id: <201307111356.r6BDuqAn086176@socsvn.freebsd.org> X-Authentication-Warning: socsvn.freebsd.org: www set sender to jmuniz@FreeBSD.org using -f From: jmuniz@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r254625 - soc2013/jmuniz/PackageKit-Setter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jul 2013 13:56:52 -0000 Author: jmuniz Date: Thu Jul 11 13:56:52 2013 New Revision: 254625 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=254625 Log: Corrected the usage of the sed command, fixing the bug that wiped out the configuration file when it should have updated it. Modified: soc2013/jmuniz/PackageKit-Setter/pk-setter Modified: soc2013/jmuniz/PackageKit-Setter/pk-setter ============================================================================== --- soc2013/jmuniz/PackageKit-Setter/pk-setter Thu Jul 11 12:53:13 2013 (r254624) +++ soc2013/jmuniz/PackageKit-Setter/pk-setter Thu Jul 11 13:56:52 2013 (r254625) @@ -92,7 +92,7 @@ # Ask PackageKit to quietly close as soon as it can gdbus call --system --dest org.freedestop.PackageKit --object-path /org/freedestop/PackageKit --method org.freedestop.PackageKit.SuggestDaemonQuit >/dev/null # Find the first instance of "DefaultBackend" in the configuration file and edit it - sed "s/DefaultBackend=.*/DefaultBackend=$2/" ${PK_PREFIX}etc/PackageKit/PackageKit.conf > ${PK_PREFIX}etc/PackageKit/PackageKit.conf + sed -i .old "s/DefaultBackend=.*/DefaultBackend=$2/" ${PK_PREFIX}etc/PackageKit/PackageKit.conf # Sync the disks to make sure the configuration file is updated sync # Silently start PackageKit