[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#576752: apt: should dpkg-source be run automatically when apt-getting a new source version?



Hi Michael Gilbert,

2010/4/8 Michael Gilbert <michael.s.gilbert@gmail.com>:
> hi, thanks for looking into this.  the two apt-gotted versions need to differ.
> for example getting kernel source from squeeze, then sid demonstrates the
> problem.

Ah, now i see. The "problem" is therefore that the versions differ
not enough - they differ only in the debian revision - not in upstream
version. (It is normal dpkg-source behavior to only include the upstream
version number in the unpack-directory.)

I don't think their is a clean and obvious way to cope with this situation:
The directory with the upstream version number isn't clean - it has the
changes from the diff applied, so it would be needed to unapply them
(impossible as we don't know which diff was applied) to apply the new diff.
It could also include local changes so overriding them would be bad…
What would be possible is to reuse the --fix-broken (-f) option here to force
apt to unpack the source again (all changes will be lost!)
As it is super simple i have implemented it straight away and
think this is all we can do about it so i would close it with this feature.

Do you agree?


Best regards,

David Kalnischkies



Reply to: