[Freedombox-discuss] How do we handle package upgrades on the Freedombox?

Jonas Smedegaard dr at jones.dk
Thu Apr 17 22:26:39 UTC 2014


Quoting Anders Jackson (2014-04-17 23:51:30)
> 2014-04-17 14:19 GMT+02:00 Jonas Smedegaard <dr at jones.dk>:
>> Quoting Anders Jackson (2014-04-17 13:14:56)
>>> Den 17 apr 2014 11:25 skrev "Jonas Smedegaard" <[1]dr at jones.dk>:
>>>> Quoting Petter Reinholdtsen (2014-04-17 08:20:22)
>>>>> If that work, jwchat is broken,
>> [snip]
>>>> Ahh, now I realize what your point is: Declaring and applying must 
>>>> be done together - so as to distinguish between stale answers 
>>>> (which must not take precedence over package data) and current 
>>>> explicitly seeded answers (which should take precedence).
>>>
>>> So if dpkg-reconfigure is trained to takes precedence as file 
>>> contents, stdin and/or switches, it would be ok then?
>>
>> Nope.
>>
>> Imagine package foo-player with two debconf questions, gtk-theme and 
>> audio-bus.
>>
>>  1) install foo-player, and select "green" and "JackD"
>>  2) edit /etc/foo-player.cfg to "theme = blue"
>>  3) preseed new value for audio-bus "Pulseaudio"
>>  4) run "dpkg-reconfigure --favor-answers-over-pkgstate"
>>
>> Result would be that *both* theme and bus would be changed.
>
> I was thinking in the way of changing 3 and 4 into this instead.
>
> dpkg-reconfigure --preseed="foo-player audio-bus string pulseaudio" foo-player
>
> And if you edit the file without debconf, it will detect that and not 
> touch it anyway, wouldn't it?

Right, then we fully agree.  Sorry I didn't see it af first.


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 966 bytes
Desc: signature
URL: <http://lists.alioth.debian.org/pipermail/freedombox-discuss/attachments/20140418/f1425951/attachment-0001.sig>


More information about the Freedombox-discuss mailing list