[augeas-devel] augeas: master - Pbuilder: lens and tests for Debian's personal builder

David Lutterkort lutter at fedoraproject.org
Wed Apr 8 19:55:13 UTC 2009


Gitweb:        http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=524101e0c46641e6fe4d52552230ef7693060f92
Commit:        524101e0c46641e6fe4d52552230ef7693060f92
Parent:        74a4df6e89d5e43558e0b88454581dacba3d2853
Author:        Raphael Pinson <raphink at gmail.com>
AuthorDate:    Wed Apr 8 12:50:39 2009 -0700
Committer:     David Lutterkort <lutter at redhat.com>
CommitterDate: Wed Apr 8 12:54:33 2009 -0700

Pbuilder: lens and tests for Debian's personal builder

---
 doc/naturaldocs/conf/lenses/Menu.txt |    1 +
 lenses/pbuilder.aug                  |   27 +++++++++++++++++++++++++++
 lenses/tests/test_pbuilder.aug       |   20 ++++++++++++++++++++
 3 files changed, 48 insertions(+), 0 deletions(-)

diff --git a/doc/naturaldocs/conf/lenses/Menu.txt b/doc/naturaldocs/conf/lenses/Menu.txt
index a6758b5..ce4c350 100644
--- a/doc/naturaldocs/conf/lenses/Menu.txt
+++ b/doc/naturaldocs/conf/lenses/Menu.txt
@@ -60,6 +60,7 @@ Group: Specific Modules  {
    File: Iptables  (iptables.aug)
    File: Lokkit  (lokkit.aug)
    File: Modprobe  (modprobe.aug)
+   File: Pbuilder  (pbuilder.aug)
    File: Rx  (rx.aug)
    File: Sep  (sep.aug)
    File: Services  (services.aug)
diff --git a/lenses/pbuilder.aug b/lenses/pbuilder.aug
new file mode 100644
index 0000000..1eb5da7
--- /dev/null
+++ b/lenses/pbuilder.aug
@@ -0,0 +1,27 @@
+(*
+Module: Pbuilder
+ Parses /etc/pbuilderrc, /etc/pbuilder/pbuilderrc
+
+Author: Raphael Pinson <raphink at gmail.com>
+
+About: Reference
+  Pbuilderrc is a standard shellvars file.
+
+About: License
+  This file is licensed under the GPL.
+
+About: Configuration files
+  This lens applies to /etc/pbuilderrc and /etc/pbuilder/pbuilderrc.
+  See <filter>.
+*)
+
+module Pbuilder =
+
+autoload xfm
+
+let filter = incl "/etc/pbuilder/pbuilderrc"
+           . incl "/etc/pbuilderrc"
+
+let lns    = Shellvars.lns
+
+let xfm    = transform lns filter
diff --git a/lenses/tests/test_pbuilder.aug b/lenses/tests/test_pbuilder.aug
new file mode 100644
index 0000000..9017381
--- /dev/null
+++ b/lenses/tests/test_pbuilder.aug
@@ -0,0 +1,20 @@
+
+
+module Test_Pbuilder =
+
+let conf = "BASETGZ=/var/cache/pbuilder/base.tgz
+#EXTRAPACKAGES=gcc3.0-athlon-builder
+export DEBIAN_BUILDARCH=athlon
+BUILDPLACE=/var/cache/pbuilder/build/
+MIRRORSITE=http://ftp.jp.debian.org/debian
+"
+
+test Pbuilder.lns get conf =
+   { "BASETGZ"  = "/var/cache/pbuilder/base.tgz" }
+   { "#comment" = "EXTRAPACKAGES=gcc3.0-athlon-builder" }
+   { "DEBIAN_BUILDARCH" = "athlon"
+       { "export" } }
+   { "BUILDPLACE" = "/var/cache/pbuilder/build/" }
+   { "MIRRORSITE" = "http://ftp.jp.debian.org/debian" }
+
+




More information about the augeas-devel mailing list