2016-03-25 10:50:39 +01:00
|
|
|
Index: dpkg-1.18.4/man/update-alternatives.1
|
|
|
|
===================================================================
|
|
|
|
--- dpkg-1.18.4.orig/man/update-alternatives.1
|
|
|
|
+++ dpkg-1.18.4/man/update-alternatives.1
|
|
|
|
@@ -33,7 +33,7 @@ update\-alternatives \- maintain symboli
|
2012-09-07 08:53:00 +02:00
|
|
|
.SH DESCRIPTION
|
|
|
|
.B update\-alternatives
|
|
|
|
creates, removes, maintains and displays information about the symbolic
|
|
|
|
-links comprising the Debian alternatives system.
|
2014-05-12 15:58:33 +02:00
|
|
|
+links comprising the SUSE alternatives system.
|
2012-09-07 08:53:00 +02:00
|
|
|
.PP
|
|
|
|
It is possible for several programs fulfilling the same or similar
|
|
|
|
functions to be installed on a single system at the same time.
|
2016-03-25 10:50:39 +01:00
|
|
|
@@ -43,7 +43,7 @@ different editor, if desired, but makes
|
2012-09-07 08:53:00 +02:00
|
|
|
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.
|
2014-05-12 15:58:33 +02:00
|
|
|
+SUSE's alternatives system aims to solve this problem.
|
2012-09-07 08:53:00 +02:00
|
|
|
A generic name in the filesystem is
|
|
|
|
shared by all files providing interchangeable functionality.
|
|
|
|
The alternatives system and the system administrator
|
2016-03-25 10:50:39 +01:00
|
|
|
@@ -82,10 +82,10 @@ installed, changed or removed,
|
2012-09-07 08:53:00 +02:00
|
|
|
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
|
2015-03-01 12:01:24 +01:00
|
|
|
.B prerm
|
|
|
|
-(remove and deconfigure) scripts in Debian packages.
|
|
|
|
+(remove and deconfigure) scripts in SUSE packages.
|
2012-09-07 08:53:00 +02:00
|
|
|
.PP
|
|
|
|
It is often useful for a number of alternatives to be synchronized,
|
|
|
|
so that they are changed as a group; for example, when several versions
|
2016-03-25 10:50:39 +01:00
|
|
|
@@ -190,7 +190,7 @@ containing the symlinks.
|
2012-09-07 08:53:00 +02:00
|
|
|
.TP
|
|
|
|
administrative directory
|
|
|
|
A directory, by default
|
|
|
|
-.IR /var/lib/dpkg/alternatives ,
|
|
|
|
+.IR /var/lib/rpm/alternatives ,
|
|
|
|
containing
|
|
|
|
.BR update\-alternatives '
|
|
|
|
state information.
|
2016-03-25 10:50:39 +01:00
|
|
|
Index: dpkg-1.18.4/utils/update-alternatives.c
|
|
|
|
===================================================================
|
|
|
|
--- dpkg-1.18.4.orig/utils/update-alternatives.c
|
|
|
|
+++ dpkg-1.18.4/utils/update-alternatives.c
|
|
|
|
@@ -63,7 +63,7 @@ static int opt_skip_auto = 0;
|
|
|
|
static int opt_verbose = 0;
|
|
|
|
static int opt_force = 0;
|
2012-09-07 08:53:00 +02:00
|
|
|
|
2015-03-01 12:01:24 +01:00
|
|
|
-#define ALT_TMP_EXT ".dpkg-tmp"
|
|
|
|
+#define ALT_TMP_EXT ".rpm-tmp"
|
2012-09-07 08:53:00 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Functions.
|
2016-03-25 10:50:39 +01:00
|
|
|
@@ -72,7 +72,7 @@ static int opt_force = 0;
|
2012-09-07 08:53:00 +02:00
|
|
|
static void
|
|
|
|
version(void)
|
|
|
|
{
|
|
|
|
- printf(_("Debian %s version %s.\n"), PROGNAME, VERSION);
|
2014-05-12 15:58:33 +02:00
|
|
|
+ printf(_("SUSE %s version %s.\n"), PROGNAME, VERSION);
|
2012-09-07 08:53:00 +02:00
|
|
|
printf("\n");
|
|
|
|
|
|
|
|
printf(_(
|
2016-03-25 10:50:39 +01:00
|
|
|
@@ -354,7 +354,7 @@ admindir_init(void)
|
|
|
|
{
|
2012-09-07 08:53:00 +02:00
|
|
|
const char *basedir, *dpkg_basedir;
|
|
|
|
|
|
|
|
- dpkg_basedir = getenv("DPKG_ADMINDIR");
|
|
|
|
+ dpkg_basedir = getenv("RPM_ADMINDIR");
|
|
|
|
if (dpkg_basedir)
|
|
|
|
basedir = dpkg_basedir;
|
|
|
|
else
|