b8c0f0e219
* Various fixes from upstream debian, see changelog file distributed with the package * Refreshed patch update-alternatives-suse.patch - Update to the 1.18.4: * Rebase patch update-alternatives-suse.patch * Touch the gost file in post OBS-URL: https://build.opensuse.org/package/show/system:packagemanager/dpkg?expand=0&rev=28
76 lines
2.5 KiB
Diff
76 lines
2.5 KiB
Diff
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
|
|
.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.
|
|
@@ -43,7 +43,7 @@ different editor, if desired, but makes
|
|
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
|
|
@@ -82,10 +82,10 @@ installed, changed or removed,
|
|
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
|
|
-(remove and deconfigure) scripts in Debian packages.
|
|
+(remove and deconfigure) scripts in SUSE packages.
|
|
.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
|
|
@@ -190,7 +190,7 @@ containing the symlinks.
|
|
.TP
|
|
administrative directory
|
|
A directory, by default
|
|
-.IR /var/lib/dpkg/alternatives ,
|
|
+.IR /var/lib/rpm/alternatives ,
|
|
containing
|
|
.BR update\-alternatives '
|
|
state information.
|
|
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;
|
|
|
|
-#define ALT_TMP_EXT ".dpkg-tmp"
|
|
+#define ALT_TMP_EXT ".rpm-tmp"
|
|
|
|
/*
|
|
* Functions.
|
|
@@ -72,7 +72,7 @@ static int opt_force = 0;
|
|
static void
|
|
version(void)
|
|
{
|
|
- printf(_("Debian %s version %s.\n"), PROGNAME, VERSION);
|
|
+ printf(_("SUSE %s version %s.\n"), PROGNAME, VERSION);
|
|
printf("\n");
|
|
|
|
printf(_(
|
|
@@ -354,7 +354,7 @@ admindir_init(void)
|
|
{
|
|
const char *basedir, *dpkg_basedir;
|
|
|
|
- dpkg_basedir = getenv("DPKG_ADMINDIR");
|
|
+ dpkg_basedir = getenv("RPM_ADMINDIR");
|
|
if (dpkg_basedir)
|
|
basedir = dpkg_basedir;
|
|
else
|