From owner-freebsd-questions@freebsd.org Sat Jul 18 15:14:49 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 266B19A58DE for ; Sat, 18 Jul 2015 15:14:49 +0000 (UTC) (envelope-from mfv@bway.net) Received: from smtp2.bway.net (smtp2.bway.net [216.220.96.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 015511880 for ; Sat, 18 Jul 2015 15:14:48 +0000 (UTC) (envelope-from mfv@bway.net) Received: from gecko4 (host-216-220-115-104.dsl.bway.net [216.220.115.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m1316v@bway.net) by smtp2.bway.net (Postfix) with ESMTPSA id D9D4095875; Sat, 18 Jul 2015 11:14:38 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bway.net; s=mail; t=1437232479; bh=+nCZK4lZIaOVSMiGkjhdCW9HQEw3PxECjIhltmdJChc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:Reply-To; b=KJDEcuBTaDBJrBykOwhzzfXXVN3+OyMFBe4ZSIT0Hh+IFp+cgMKUEGbx0wLqn2rZi iIEEFT/eJnrh9LT5qyduvd3m8j8WkbM2ebJZsbJJrXVt+xf4Xyt/pJ0t9b7Ft2Aqta C4vUGhUpcbeZyjIcr8H5Wy05A7gn7a16ZjKw8rSM= Date: Sat, 18 Jul 2015 11:14:38 -0400 From: mfv To: Lowell Gilbert Cc: freebsd-questions@freebsd.org Subject: Re: Sync Ports to Packages Message-ID: <20150718111438.10f593f7@gecko4> In-Reply-To: <44mvyulhdx.fsf@lowell-desk.lan> References: <20150717145356.612a3a1e@gecko4> <44mvyulhdx.fsf@lowell-desk.lan> Reply-To: mfv@bway.net MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Jul 2015 15:14:49 -0000 > On Fri, 2015-07-17 at 15:21 Lowell Gilbert > wrote: > >mfv writes: > >> Am trying to write a script to keep my packages and ports in sync but >> have not been able to find a local file in the package system that >> contains the revision number of my last upgrade. Once that number is >> obtained it is possible to sync the port tree. >> >> The following script extracts the build number from the appropriate >> server but needs Internet access: >> >> https://gist.github.com/reedacartwright/8622973baf89b263a6d7 >> >> Is it possible to extract the same revision number from a local file? > >svnversion(1) >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to >"freebsd-questions-unsubscribe@freebsd.org" Hello Lowell, Thanks for your reply. It appears I did not explain my issue clearly. The idea is to have both ports and packages synced to the same build/revision number. To do this I first upgrade the binaries by invoking "pkg upgrade". Then, after using a web browser to check out the appropriate beefy server, I identify the build number of that upgrade. Finally, I update the local ports tree by running "svnup ports -n ". When finished, the ports and packages are synced. It is possible to identify the revision number of the ports tree by using "svnup ports -n". But I can not find a command among the pkg tools that provides the equivalent number by accessing local files. Cheers ... Marek