This patch makes it possible to customize the used rpm-program. Such a
custom rpm can call e.g. distribution specific rpm-binaries.

This is necessarily since e.g. mach in a Fedora Core 1 environment would
install/create database in db4.1 format which can not be understood by
'rpmbuild' in Red Hat Linux 7.3 chroots.


2003-12-13  Enrico Scholz  <enrico.scholz@informatik.tu-chemnitz.de>
	* set RPM::PM to 'external'

2003-11-13  Enrico Scholz  <enrico.scholz@informatik.tu-chemnitz.de>
	* created initially
--- mach/src/mach-helper.c~rpmsel	2003-12-13 00:59:19.000000000 +0100
+++ mach/src/mach-helper.c	2003-12-13 01:06:06.000000000 +0100
@@ -246,7 +246,7 @@
   check_dir_allowed (rootsdir, argv[3]);
 
   /* all checks passed, execute */
-  do_command ("/bin/rpm", &(argv[1]));
+  do_command ("/etc/mach/programs.d/rpm", &(argv[1]));
 }
 
 
--- mach/scripts/mach.in~rpmsel	2003-12-13 01:00:20.000000000 +0100
+++ mach/scripts/mach.in	2003-12-13 01:06:51.000000000 +0100
@@ -1098,6 +1098,7 @@
 };
 
 RPM {
+    PM "external";
     Ignore { };
     Hold { };
     Allow-Duplicated { "^kernel$"; "^kernel-"; "^alsa-kernel"; "^gpg-pubkey$" };     Source {
@@ -1110,6 +1111,9 @@
     Erase-Options "--root ''' + root + '''";
 }
 Dir {
+     Bin {
+          rpm "/etc/mach/programs.d/rpm";
+     }
      Etc "''' + os.path.join (state, 'apt', 'etc', 'apt') + '''";
      Cache "''' + os.path.join ('/', 'var', 'cache', 'mach') + '''";
      State "''' + os.path.join (state, 'apt', 'var', 'state', 'apt') + '''";
