[MacPorts] archives modified

MacPorts noreply at macports.org
Fri Aug 13 07:56:06 PDT 2010


Changed page "archives" by snc at macports.org from 98.216.99.235*
Page URL: <http://trac.macports.org/wiki/archives>
Diff URL: <http://trac.macports.org/wiki/archives?action=diff&version=5>
Revision 5
Comment: add blurb about daily rebuilding of only updated ports

-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: archives
=========================================================================
--- archives (version: 4)
+++ archives (version: 5)
@@ -40,6 +40,16 @@
 Your archives are now signed and MacPorts should be configured to recognize your signature. Try it out!
 
  = Maintenance of Archive Repository =
+Each day (really, every 30 minutes) new ports arrive and several are updated. Rather than rebuilding the whole tree you'll want to go after the ones with changes. This is easily achieved by the `find` command.
+{{{
+cd /opt/local/var/macports/sources/rsync.macports.org/release/ports
+sudo port selfupdate
+find . -name Portfile -mtime -1d  | while read i
+do
+    sudo port archive `dirname ${i#.*/*/}`
+done
+}}}
+
 As you build archives, you'll eventually come across an instance where you're upgrading an older version. Keeping these outdated archives around might be less than ideal. We can wipe them out by looping through the repository checking the versions against what's current.
 {{{
 cd /archive/repository

-------8<------8<------8<------8<------8<------8<------8<------8<--------

* The IP shown here might not mean anything if the user or the server is
behind a proxy.

--
MacPorts <http://www.macports.org/>
Ports system for Mac OS

This is an automated message. Someone at http://www.macports.org/ added your email
address to be notified of changes on archives. If it was not you, please
report to .


More information about the macports-changes mailing list