这是indexloc提供的服务,不要输入任何密码

Debian Bug report logs - #294073
[CONFFILE] add 'R' command to resolve diffs with external program

version graph

Package: dpkg; Maintainer for dpkg is Dpkg Developers <debian-dpkg@lists.debian.org>; Source for dpkg is src:dpkg (PTS, buildd, popcon).

Reported by: Jari Aalto <jari.aalto@cante.net>

Date: Mon, 7 Feb 2005 19:03:03 UTC

Severity: wishlist

Tags: upstream

Merged with 32877, 48717, 120152, 189805, 247336, 268154, 290854, 413436, 440640, 473996, 548663, 578804

Found in versions dpkg/1.13.22, dpkg/1.13.25, dpkg/1.15.3.1, dpkg/1.15.5.6

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


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).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Jari Aalto <jari.aalto@cante.net>
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).


Message #10 received at 294073@bugs.debian.org (full text, mbox, reply):

From: Scott James Remnant <scott@netsplit.com>
To: 294073@bugs.debian.org, Jari Aalto <jari.aalto@cante.net>
Subject: Re: Bug#294073: apt: [apt-get] Add new command (R) to resolve upgrade diffs
Date: Tue, 08 Feb 2005 18:53:28 +0000
[Message part 1 (text/plain, inline)]
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?
[signature.asc (application/pgp-signature, inline)]

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).


Merged 32877 48717 120152 189805 247336 268154 290854 294073. 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).


Message #21 received at 294073@bugs.debian.org (full text, mbox, reply):

From: Matt Zimmerman <mdz@debian.org>
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).


Merged 32877 48717 120152 189805 247336 268154 290854 294073 380332. Request was from "Adam D. Barratt" <debian-bts@adam-barratt.org.uk> 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).


Merged 32877 48717 120152 189805 247336 268154 290854 294073 413436. Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Merged 32877 48717 120152 189805 247336 268154 290854 294073 413436 440640. Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (Sun, 07 Oct 2007 18:51:18 GMT) (full text, mbox, link).


Forcibly Merged 32877 48717 120152 189805 247336 268154 290854 294073 413436 440640 473996. Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (Sat, 12 Apr 2008 17:51:11 GMT) (full text, mbox, link).


Forcibly Merged 32877 48717 120152 189805 247336 268154 290854 294073 413436 440640 473996 548663. Request was from Raphael Hertzog <hertzog@debian.org> to control@bugs.debian.org. (Mon, 28 Sep 2009 06:33:11 GMT) (full text, mbox, link).


Forcibly Merged 32877 48717 120152 189805 247336 268154 290854 294073 413436 440640 473996 548663 578804. Request was from Raphael Hertzog <hertzog@debian.org> to control@bugs.debian.org. (Fri, 23 Apr 2010 05:12:09 GMT) (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).


Message #46 received at 294073@bugs.debian.org (full text, mbox, reply):

From: PT FINDORA INTERNUSA <sankhokaihatsuco.ltd@outlook.com>
To: me <marketing01@findora.com>
Subject: P.O 22/09/2021
Date: Tue, 21 Sep 2021 21:26:56 -0700
[Message part 1 (text/plain, inline)]
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
[P.O22.09.2021.cab (application/zip, attachment)]

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).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 27 02:58:31 2025; Machine Name: bembo

Debian Bug tracking system

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/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.