Difference between revisions of "Getting PKGBUILDs from SVN"

From ArchWiki
Jump to: navigation, search
(replaced depreciated -N switch in svn command)
(Checkout an older revision of a package)
Line 33: Line 33:
  
 
   cd svn-packages
 
   cd svn-packages
   svn log
+
   svn log packagename
  
Find out the revision you want by examining the history
+
Find out the revision you want by examining the history, then:
  
   svn update -r1729 package-name
+
   svn update -r1729 packagename
 +
or
 +
  svn update -r{20090303} packagename # if no revision on 20090303 exists, svn will grab the most recent package before that time
  
 
This will update an existing working copy of package-name to r1729
 
This will update an existing working copy of package-name to r1729

Revision as of 01:02, 26 March 2009


IMPORTANT WARNING

The entire SVN repo is huge. Not only will it take an obscene amount of disk space, but it will also tax the archlinux.org server for you to download it. Do not download the whole repo, only follow the instructions below.

If you abuse this service, your address may be blocked.

Never use the public SVN for any sort of scripting.

Non-recursive checkout

  svn checkout --depth=empty svn://archlinux.org/srv/svn-packages 

This creates a directory named "svn-packages" which contains nothing. It does, however, know that it is an svn checkout.

Checkout a package

  cd svn-packages
  svn update package-name

This will pull the package you requested into your checkout. From now on, any time you `svn update` at the top level, this will be updated as well.

Updating all packages

  cd svn-packages
  svn update

Checkout an older revision of a package

  cd svn-packages
  svn log packagename

Find out the revision you want by examining the history, then:

  svn update -r1729 packagename

or

  svn update -r{20090303} packagename # if no revision on 20090303 exists, svn will grab the most recent package before that time

This will update an existing working copy of package-name to r1729