dpkg/update-alternatives-suse.patch
Tomáš Chvátal 93e5bae1d9 - Version update to 1.18.10:
* Various few fixes, see changelog file in the package
  * Refresh patch update-alternatives-suse.patch
  * Remove patch dpkg-sparc.diff

- Version update to 1.18.10:
  * Various few fixes, see changelog file in the package
  * Refresh patch update-alternatives-suse.patch
  * Remove patch dpkg-sparc.diff

OBS-URL: https://build.opensuse.org/package/show/system:packagemanager/dpkg?expand=0&rev=41
2016-09-07 12:46:37 +00:00

73 lines
2.6 KiB
Diff

Index: dpkg-1.18.10/man/update-alternatives.1
===================================================================
--- dpkg-1.18.10.orig/man/update-alternatives.1
+++ dpkg-1.18.10/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.10/utils/update-alternatives.c
===================================================================
--- dpkg-1.18.10.orig/utils/update-alternatives.c
+++ dpkg-1.18.10/utils/update-alternatives.c
@@ -70,7 +70,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(_(
Index: dpkg-1.18.10/utils/Makefile.am
===================================================================
--- dpkg-1.18.10.orig/utils/Makefile.am
+++ dpkg-1.18.10/utils/Makefile.am
@@ -25,8 +25,8 @@ update_alternatives_SOURCES = \
update-alternatives.c
update_alternatives_CPPFLAGS = \
- -DALT_TMP_EXT=\".dpkg-tmp\" \
- -DADMINDIR_ENVVAR=\"DPKG_ADMINDIR\" \
+ -DALT_TMP_EXT=\".rpm-tmp\" \
+ -DADMINDIR_ENVVAR=\"RPM_ADMINDIR\" \
$(AM_CPPFLAGS)
update_alternatives_LDADD = \