Report forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>: Bug#294073; Package apt.
(full text, mbox, link).
Acknowledgement sent to Jari Aalto <jari.aalto@cante.net>:
New Bug report received and forwarded. Copy sent to APT Development Team <deity@lists.debian.org>.
(full text, mbox, link).
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: apt: [apt-get] Add new command (R) to resolve upgrade diffs
Date: Mon, 07 Feb 2005 20:53:19 +0200
Package: apt
Version: 0.5.28.1
Severity: wishlist
Many times on upgrage, the manual work to resolve situations like
this could be made easier:
Configuration file `/etc/cups/cupsd.conf'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : background this process to examine the situation
The default action is to keep your current version.
FEATURE SUGGESTION
==================
Add command "R" to (R)esolve diffs with an external program. The
command R would be implemented as:
* Call external COMMAND with ARG1 and ARG2. The ARG1 would
be the old file and ARG2 would be the new file file. In this the
exec all:
COMMAND /etc/cups/cupsd.conf /etc/cups/cupsd.conf.dpkg-new
* The COMMAND would be defined somewhere in /etc/apt/ configuration
files. Like in /etc/apt/conf.d/30diff which would contain:
APT::diff-resolve-command "/etc/apt/diff-resolve-emacs.sh";
* The default /etc/apt/diff-resolve-emacs.sh could be a simple bash script
that would call Emacs ediff interface to resolve the situation.
Something like:
#!/bin/sh
Main()
{
current=$1
orig=$2
[ ! "$current" ] && return 1
[ ! "$orig" ] && return 1
[ ! -f $current ] && return 1
[ ! -f $orig ] && return 1
bin=${EMACS:-emacs}
type -P $bin > /dev/null || return 1 # No 'emacs' installed yet
${EMACS:-emacs} --no-windows --no-init-file --no-site-file \
--load ediff \
--eval "(ediff \"$orig\" \"$current\")"
}
Main "$@"
# End of example
After that, it would be a simple task of:
* Pess "n" to go to next diff, "p" to previous
* Press "A" to copy diff from new upgrade to CURRENT file (B)
* Press "wb" to write patched CURRENT (B)
* Exit emacs C-x C-b
The diff interface would return to the original screen:
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : background this process to examine the situation
R : Resolve differencies
And the user would press "N" to continue to next upgrade problem.
While this example is Emacs specific, the modular design would
allow user to write, or APT to ship with, any other example
scripts e.g. that could use some graphical interface. Selecting
another interface would be just adding user entry:
/etc/apt/conf.d/99diff
That would override the package's default.
Jari
-- Package-specific info:
-- (no /etc/apt/preferences present) --
-- (/etc/apt/sources.list present, but not submitted) --
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ISO-8859-1) (ignored: LC_ALL set to en_US)
Versions of packages apt depends on:
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libgcc1 1:3.4.3-7 GCC support library
ii libstdc++5 1:3.3.5-8 The GNU Standard C++ Library v3
-- no debconf information
Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>: Bug#294073; Package apt.
(full text, mbox, link).
Acknowledgement sent to Scott James Remnant <scott@netsplit.com>:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>.
(full text, mbox, link).
reassign 294073 dpkg
severity 294073 wishlist
retitle 294073 "[DPKG][CONFFILE] add 'R' command to resolve diffs with external program"
merge 268154 294073
retitle 268154 "[DPKG][CONFFILE] should offer configurable diff/merge program"
thanks
On Mon, 2005-02-07 at 20:53 +0200, Jari Aalto wrote:
> Many times on upgrage, the manual work to resolve situations like
> this could be made easier:
>
This bug is a dpkg bug, not an APT bug. Futhermore, this is a duplicate
of a bug (#268154) which _you_ filed.
Scott
--
Have you ever, ever felt like this?
Had strange things happen? Are you going round the twist?
Bug reassigned from package `apt' to `dpkg'.
Request was from Scott James Remnant <scott@netsplit.com>
to control@bugs.debian.org.
(full text, mbox, link).
Changed Bug title.
Request was from Scott James Remnant <scott@netsplit.com>
to control@bugs.debian.org.
(full text, mbox, link).
Information forwarded to debian-bugs-dist@lists.debian.org, Dpkg Development <debian-dpkg@lists.debian.org>: Bug#294073; Package dpkg.
(full text, mbox, link).
Acknowledgement sent to Matt Zimmerman <mdz@debian.org>:
Extra info received and forwarded to list. Copy sent to Dpkg Development <debian-dpkg@lists.debian.org>.
(full text, mbox, link).
To: Jari Aalto <jari.aalto@cante.net>, 294073@bugs.debian.org
Subject: Re: Bug#294073: apt: [apt-get] Add new command (R) to resolve upgrade diffs
Date: Tue, 1 Mar 2005 20:53:49 -0800
reassign 294073 dpkg
thanks
On Mon, Feb 07, 2005 at 08:53:19PM +0200, Jari Aalto wrote:
> Many times on upgrage, the manual work to resolve situations like
> this could be made easier:
>
> Configuration file `/etc/cups/cupsd.conf'
> ==> Modified (by you or by a script) since installation.
> ==> Package distributor has shipped an updated version.
> What would you like to do about it ? Your options are:
> Y or I : install the package maintainer's version
> N or O : keep your currently-installed version
> D : show the differences between the versions
> Z : background this process to examine the situation
> The default action is to keep your current version.
This functionality is part of dpkg.
> FEATURE SUGGESTION
> ==================
>
> Add command "R" to (R)esolve diffs with an external program. The
> command R would be implemented as:
This would require saving a copy of the original, unmodified file, which
dpkg currently doesn't do.
--
- mdz
Bug reassigned from package `dpkg' to `dpkg'.
Request was from Matt Zimmerman <mdz@debian.org>
to control@bugs.debian.org.
(full text, mbox, link).
Disconnected #380332 from all other report(s).
Request was from "Adam D. Barratt" <debian-bts@adam-barratt.org.uk>
to control@bugs.debian.org.
(full text, mbox, link).
Removed tag(s) patch.
Request was from Raphaël Hertzog <hertzog@debian.org>
to control@bugs.debian.org.
(Thu, 06 May 2010 13:33:11 GMT) (full text, mbox, link).
Added tag(s) patch.
Request was from Axel Beckert <abe@debian.org>
to control@bugs.debian.org.
(Thu, 13 Sep 2012 12:51:07 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>: Bug#294073; Package dpkg.
(Wed, 22 Sep 2021 04:39:25 GMT) (full text, mbox, link).
Acknowledgement sent
to PT FINDORA INTERNUSA <sankhokaihatsuco.ltd@outlook.com>:
Extra info received and forwarded to list. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>.
(Wed, 22 Sep 2021 04:39:25 GMT) (full text, mbox, link).
Hello,
Good morning,
We have gone through your samples from a partner and Here is our Order
List. Please do bear in mind that we are very much in need of this
order, quote your competitive prices.
Kindly send the Order confirmation.
Your early reply will be much appreciated.
Best Regards,
Maryanah Erwin.
PT FINDORA INTERNUSA
Jln Pahlawan 66 Kec. Arjawinangun
45162 CIREBON West-Java INDONESIA
tel : +62 231 357334
fax: +62 231 357260
email: marketing@findora.com
Removed tag(s) patch.
Request was from Chris Hofstaedtler <zeha@debian.org>
to 32877-quiet@bugs.debian.org.
(Sun, 19 Jan 2025 22:27:03 GMT) (full text, mbox, link).
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.