Date: Sat, 18 Jul 2015 11:14:38 -0400 From: mfv <mfv@bway.net> To: Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
> On Fri, 2015-07-17 at 15:21 Lowell Gilbert > <freebsd-questions-local@be-well.ilk.org> wrote: > >mfv <mfv@bway.net> 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 <build#>". 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150718111438.10f593f7>