File update-alternatives-1.15.8.10-suse.patch of Package deb

Index: dpkg-1.15.8.10/man/update-alternatives.8
===================================================================
--- dpkg-1.15.8.10/man/update-alternatives.8.orig	2011-01-30 20:37:44.000000000 +0100
+++ dpkg-1.15.8.10/man/update-alternatives.8	2011-03-16 14:16:14.086966915 +0100
@@ -4,7 +4,7 @@
 .\" it under the terms of the GNU General Public License as published
 .\" by the Free Software Foundation; either version 2 of the License, or
 .\" (at your option) any later version.  There is NO WARRANTY.  You can
-.\" find the GNU GPL in /usr/share/common-licenses/GPL on any Debian system.
+.\" find the GNU GPL in /usr/share/doc/licenses/GPL-2.0.txton any SUSE system.
 .TH update\-alternatives 8 "2009-04-13" "Debian Project" "dpkg utilities"
 .SH NAME
 update\-alternatives \- maintain symbolic links determining default commands
@@ -17,7 +17,7 @@
 .SH DESCRIPTION
 .B update\-alternatives
 creates, removes, maintains and displays information about the symbolic
-links comprising the Debian alternatives system.
+links comprising the SUSE alternatives system.
 .PP
 It is possible for several programs fulfilling the same or similar
 functions to be installed on a single system at the same time.
@@ -27,7 +27,7 @@
 to make a good choice for an editor to invoke if the
 user has not specified a particular preference.
 .PP
-Debian's alternatives system aims to solve this problem.
+SUSE's alternatives system aims to solve this problem.
 A generic name in the filesystem is
 shared by all files providing interchangeable functionality.
 The alternatives system and the system administrator
@@ -66,10 +66,10 @@
 is called to update information about that file in the alternatives system.
 .B update\-alternatives
 is usually called from the
-.B postinst
+.B post
 (configure) or
-.B prerm
-(install) scripts in Debian packages.
+.B preun
+(install) scripts in SUSE packages.
 .PP
 It is often useful for a number of alternatives to be synchronised,
 so that they are changed as a group; for example, when several versions
@@ -173,7 +173,7 @@
 .TP
 administrative directory
 A directory, by default
-.IR /var/lib/dpkg/alternatives ,
+.IR /var/lib/rpm/alternatives ,
 containing
 .BR update\-alternatives '
 state information.
@@ -477,7 +477,7 @@
 .RE
 .
 .SH BUGS
-If you find a bug, please report it using the Debian bug-tracking system.
+If you find a bug, please report it using the SUSE bug-tracking system.
 .PP
 If you find any discrepancy between the operation of
 .B update\-alternatives
Index: dpkg-1.15.8.10/utils/update-alternatives.c
===================================================================
--- dpkg-1.15.8.10/utils/update-alternatives.c.orig	2011-01-30 20:37:44.000000000 +0100
+++ dpkg-1.15.8.10/utils/update-alternatives.c	2011-03-16 14:17:29.269860473 +0100
@@ -51,7 +51,7 @@
 #define PROGNAME "update-alternatives"
 
 static const char *altdir = SYSCONFDIR "/alternatives";
-static const char *admdir = ADMINDIR "/alternatives";
+static const char *admdir = "/var/lib/rpm/alternatives";
 
 static const char *prog_path = "update-alternatives";
 
@@ -68,7 +68,7 @@
 static char *pass_opts[MAX_OPTS];
 static int nb_opts = 0;
 
-#define DPKG_TMP_EXT ".dpkg-tmp"
+#define DPKG_TMP_EXT ".rpm-tmp"
 
 /*
  * Functions.
@@ -77,7 +77,7 @@
 static void
 version(void)
 {
-	printf(_("Debian %s version %s.\n"), PROGNAME, VERSION);
+	printf(_("SUSE %s version %s.\n"), PROGNAME, VERSION);
 	printf("\n");
 
 	printf(_(
@@ -1984,8 +1984,8 @@
 	int i = 0, count;
 
 	setlocale(LC_ALL, "");
-	bindtextdomain("dpkg", LOCALEDIR);
-	textdomain("dpkg");
+	bindtextdomain("rpm", LOCALEDIR);
+	textdomain("rpm");
 
 	if (setvbuf(stdout, NULL, _IONBF, 0))
 		error("setvbuf failed: %s", strerror(errno));
openSUSE Build Service is sponsored by