[Aptitude-devel] Bug#915246: aptitude: doesn't cope with "Repository '…' changed its 'Origin' value from 'A' to 'B'. This must be accepted explicitly before updates for this repository can be applied. […] Do you want to accept these changes and continue updating from this repository?" questions from apt.
david at kalnischkies.de
Sun Dec 2 21:34:11 GMT 2018
On Sun, Dec 02, 2018 at 04:34:23AM +0100, Axel Beckert wrote:
> But with "apt update" I get this dialog (and afterwards two more)
> instead of just failing package list updates:
> E: Repository 'https://deb.opera.com/opera stable InRelease' changed its 'Origin' value from 'Opera Software ASA' to 'Opera Software AS'
> N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
> Do you want to accept these changes and continue updating from this repository? [y/N]
> Seems as if currently aptitude doesn't have the capability to make a
> dialog out of this.
For Context: It is "just" apt which asks this question interactively
currently, apt-get "only" prints the errors and expects the confirmation
via commandline flag(s) [or as usual via config options].
Implementation wise it should be "simple": You likely have a class
extending pkgAcquireStatus – change that to pkgAcquireStatus2 (yeah for
keeping ABI compatibility) and implement the method "bool
ReleaseInfoChanges(metaIndex const * const LastRelease, metaIndex const
* const CurrentRelease, std::vector<ReleaseInfoChange> &&Changes)".
See apt-private/acqprogress.cc for an example in the apt sources
implementing the behaviour in apt/apt-get.
Feel free to ask if there is something unclear… it is a security feature
of sorts & I implemented it, so its kinda important to me. :)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: not available
More information about the Aptitude-devel