From owner-freebsd-questions@freebsd.org Fri Jul 17 18:54:05 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 D395A9A4BC4 for ; Fri, 17 Jul 2015 18:54:05 +0000 (UTC) (envelope-from mfv@bway.net) Received: from smtp1.bway.net (smtp1.v6.bway.net [IPv6:2607:d300:1::27]) (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 B0EC91DA6 for ; Fri, 17 Jul 2015 18:54:05 +0000 (UTC) (envelope-from mfv@bway.net) Received: from gecko4 (host-216-220-115-102.dsl.bway.net [216.220.115.102]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m1316v@bway.net) by smtp1.bway.net (Postfix) with ESMTPSA id 96AE995882 for ; Fri, 17 Jul 2015 14:53:56 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bway.net; s=mail; t=1437159236; bh=c0WJlq0XxbCfzHdtp5Akwvblusv9AIKQsmRPvr5Mns0=; h=Date:From:To:Subject:Reply-To; b=VjTkDgF3+6K1xYP2iH81ZtIG/mijFThokAgtFkFHv1nLqRctEDCtTy0dKuRgMW69h v/0qNl2RQq7zGrQddS9MKJ25h6C5zY+gKiPIcwT4rBXlYxqmbMRS8cS2xY8CaZFRaZ Icwt3DI8JL/alihKbMCUm/vd6NiezxGmj9kW/JNA= Date: Fri, 17 Jul 2015 14:53:56 -0400 From: mfv To: freebsd-questions@freebsd.org Subject: Sync Ports to Packages Message-ID: <20150717145356.612a3a1e@gecko4> 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: Fri, 17 Jul 2015 18:54:05 -0000 Hello, 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? Any leads would be appreciated. Cheers ... __o _ \<,_ Marek (+)/ (+) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~