[haiku-development] Re: Update vs. Full-Sync in SoftwareUpdater

  • From: Brian Hill <brianh@xxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 2 Apr 2017 18:27:59 -0400


On Apr 2, 2017, at 4:34 AM, Adrien Destugues <pulkomandy@xxxxxxxxxxxxx> wrote:

On Sun, Apr 02, 2017 at 09:33:55AM +0200, Humdinger wrote:

On 1 April 2017 at 18:50,  <brianh@xxxxxxxxxxxx> wrote:
 *New prompt at application start to choose between doing an Update or
       a Full Sync.  Also lays the ground work for implimenting silent
       check-only feature.

Generally, I think this option is confusing to the user. Being a long
time Haiku user, I know that "full-sync" also does
downgrading/removing of apps. But I still find it hard to decide...
I've used the "update" command since it was available and it always
worked nicely. Recently I used "full-sync" once and had packages
uninstalled. Should I've stuck with "update"? When is a full-sync
necessary? How do I recognize such a situation?
Humdinger, thanks for the note, it is worth discussing.  I have been frustrated 
lately with the way full-sync behaves in different situations.  Across the 6 
Haiku instances I have installed and use for testing which are at various hrevs 
and have different packages installed full-sync will sometimes behave nicely, 
and sometimes wants to uninstall packages or even “upgrade” packages to a lower 
version that what is currently installed.  I do plan to experiment with better 
ways to present the option than a simple Alert window.  It seems to me the best 
method is using Update unless something is really broken and a Full-sync might 
repair it.


Full-sync should be the way to go in normal cases, but that assumes all
packages you have installed are from repositories. It does not mix well
with packages installed manually, and tends to remove those.
I think that is what I am seeing, which for developers using a nightly presents 
strange situations when we are experimenting with packages from other 
developers and building our own.


In theory, these are designed so you can use "update" for regular
updates of a stable release (where we are not allowed to rename or
downgrade packages), and full-sync would be used to update from a
release to the next (beta1 to beta2, or maybe R1 to R2). However, this
assumes strict rules for updating the repositories and careful testing,
and this is not in place at the moment.

So you seem to be saying using Update will be the way to go once we hit a 
stable release.  If that is the case then it seems Update should be the default 
method of SoftwareUpdater.

-Brian


Other related posts: