r109 - branches/rewrite/etc

Nat Budin partial-mirror-devel@lists.alioth.debian.org
Wed, 30 Jun 2004 20:45:26 -0600


Author: natbudin-guest
Date: Wed Jun 30 20:45:26 2004
New Revision: 109

Modified:
   branches/rewrite/etc/debpartial-mirror.conf
Log:
Added some comments to show how everything works.



Modified: branches/rewrite/etc/debpartial-mirror.conf
==============================================================================
--- branches/rewrite/etc/debpartial-mirror.conf	(original)
+++ branches/rewrite/etc/debpartial-mirror.conf	Wed Jun 30 20:45:26 2004
@@ -20,24 +20,46 @@
 sections = main
 distributions = stable
 
+;; Here is our first backend.  It mirrors a subset of packages from the
+;; Debian official repositories.
 [sarge]
+
+;; Where do we get the packages from?
 server = http://ftp.debian.org/debian
+
+;; Since we specify sections and distributions in this section, what we
+;; specify here overrides the settings in [DEFAULT].
 sections = main
 distributions = sarge
+
+;; Only get a subset of the packages in this source.
 filter = subsection:base priority:important
 
+;; Here is another backend.  This one will get all the debian-installer
+;; packages from the unstable distribution (sid).
 [sid_debian-installer]
 server = http://ftp.debian.org/debian
 sections = main/debian-installer
 distributions = sid
 filter = all
 
+;; This backend is a local repository, as you can see from the use of the
+;; file:// URL.  The idea is that we have a set of custom-made packages
+;; stored on the local computer.
 [local_custom_packages]
 server = file:///var/lib/custom-packages
 sections = main
 distributions = local
 filter = all
 
+;; These packages depend on Debian official packages.  We will use the
+;; "sarge" backend (above) to satisfy these dependencies.
+resolve_deps_using = sarge
+
+;; Here is a merging backend.  It uses the backends we specify above to
+;; create a custom distribution that provides all the packages in each
+;; backend.  This will be created using hard links to the package files
+;; in each backend directory.
 [my_custom_debian_distro]
 backends = sarge sid_debian-installer local_custom_packages
 name = sarge-with-sids-installer-and-some-other-stuff