[Piuparts-commits] rev 805 - in trunk: . debian

Holger Levsen holger at alioth.debian.org
Wed Nov 24 21:51:21 UTC 2010


Author: holger
Date: 2010-11-24 21:51:17 +0000 (Wed, 24 Nov 2010)
New Revision: 805

Modified:
   trunk/README.txt
   trunk/debian/changelog
Log:
set environment variable PIUPARTS_OBJECTS in custom scripts to a space
seperated list of packages / changes files being tested.

Modified: trunk/README.txt
===================================================================
--- trunk/README.txt	2010-11-24 21:14:38 UTC (rev 804)
+++ trunk/README.txt	2010-11-24 21:51:17 UTC (rev 805)
@@ -174,13 +174,12 @@
 include Perl.
 
 
-It would be interesting to declare some piuparts variables like the name
-of the current testing packages, and be able to use this variable in the 
-custom scripts. But this option is not available yet.
+The variable PIUPARTS_OBJECTS is set to the packages currently being tested
+(seperated by spaces, if applicable) or the .changes file(s) being used.
 
-=== Example custom script:
+=== Example custom scripts:
 
-'$ cat post_install_number.sh'
+'$ cat post_install_numbers'
 ----
 #!/bin/bash
 
@@ -189,7 +188,15 @@
 exit 0
 ----
 
+'$ cat post_setup_package'
+----
+#!/bin/sh
 
+echo "$PIUPARTS_OBJECT will now get tested."
+exit 0
+----
+
+
 == Distrubuted testing
 
 As part of the quality assurance effort of Debian, 

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2010-11-24 21:14:38 UTC (rev 804)
+++ trunk/debian/changelog	2010-11-24 21:51:17 UTC (rev 805)
@@ -60,6 +60,8 @@
     - remove logrotate and depended packages after the test. (Closes: #602409)
       This is a fix for the incomplete patch for #566597. Again, this is a
       hardcoded list. :-(
+    - set environment variable PIUPARTS_OBJECTS in custom scripts to a space
+      seperated list of packages / changes files being tested.
   * Add ${misc:Depends} to Depends in debian/control. 
   * Remove versioned dependencies on debhelper, dpkg-dev and debootstrap as
     the versions available in Etch are sufficient.




More information about the Piuparts-commits mailing list