Package: reprepro
Version: 4.2.0-2
Severity: normal

Hello,

consider conf/distributions:

Codename: distro
...
Update: - disto_update
...

distro and disto_update source were in sync. But then a couple of packages were
removed from the source repository of distro_update. However then:

$ reprepro update distro

won't do anything despite `reprepro checkupdate distro` listing no longer
externally available packages as slated for deletion.

As far as I can tell, update does not happen because (updates.c):

retvalue updates_update(.....)
.....
  todo = false;
......
    r = updates_enqueue(cache, database, d);
    if( RET_IS_OK(r) )
        todo = true;
....

   if( RET_WAS_ERROR(result) || !todo ) {
      .... fail or do nothing...
      return
   }

   ... real update happens below ...


updates_enqueue() returs RET_NOTHING as it is supposed to (there is nothing new
to download). But then 'todo' does not become 'true' and updates_update() ends
soon after without doing anything useful. So when calculating 'todo', at least
it should be checked if there are packages marked for deletion.

The bug is present in stable (4.2.0-2), squeeze-backports (4.5.1-1~bpo60+1) and
current wheezy/sid (4.6.0-1) releases.



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to