Your message dated Mon, 07 Aug 2006 14:09:54 +0200 with message-id <44D72D92.3050307@debian.org> and subject line "tla [ar]browse" on baz-format archive on sftp:// or filesystem has dupes has caused the attached Bug report to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database)
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: "tla [ar]browse" on baz-format archive on sftp:// or filesystem has dupes
- From: Lionel Elie Mamane <lionel@mamane.lu>
- Date: Sun, 25 Dec 2005 00:10:13 +0100
- Message-id: <20051224231013.GA15364@bagnat.mamane.lu>
Package: tla Version: 1.3.3-3 Severity: normal Tags: patch (This is upstream bug #15286.) tla register-archive sftp://arch.debian.org/arch/pkg-horde/2006/ tla abrowse -A pkg-horde-hackers@lists.alioth.debian.org--2006 mnemo Output: pkg-horde-hackers@lists.alioth.debian.org--2006 mnemo mnemo--sid mnemo--sid--1 base-0 .. patch-6 mnemo--sid--2 base-0 .. patch-4 mnemo--sid mnemo--sid--1 base-0 .. patch-6 mnemo--sid--2 base-0 .. patch-4 mnemo--upstream mnemo--upstream--1 base-0 .. patch-2 mnemo--upstream--2 base-0 .. patch-1 mnemo--upstream mnemo--upstream--1 base-0 .. patch-2 mnemo--upstream--2 base-0 .. patch-1 mnemo mnemo--sid mnemo--sid--1 base-0 .. patch-6 mnemo--sid--2 base-0 .. patch-4 mnemo--sid mnemo--sid--1 base-0 .. patch-6 mnemo--sid--2 base-0 .. patch-4 mnemo--upstream mnemo--upstream--1 base-0 .. patch-2 mnemo--upstream--2 base-0 .. patch-1 mnemo--upstream mnemo--upstream--1 base-0 .. patch-2 mnemo--upstream--2 base-0 .. patch-1 Notice that the category is listed twice, in each category each branch is listed twice. Accessing the same archive over http://arch.debian.org/arch/pkg-horde/2006/, everything works well. You will see the same bug by running a (backported) tla on costa itself and direct filesystem access. This archive is in baz format, the default in this version of tla. The reason for the bug is quite simple: In function pfs_baz_search (in src/tla/libarch/archive-pfs.c), the directory list is created in the list the OS/sftp gives it to us, so not necessarily sorted. But rel_uniq_by_field supposes that this list is *sorted* (it removes only consecutives duplicates). So the list has to be explicitly sorted before being passed to rel_uniq_by_field. (Note that the uniquified list will be sorted *again* higher up in the call trace, by arch_archive_categories in archive.c . Maybe that later sort can be removed, maybe not. I'm not familiar enough with the code.) This also explains why this didn't happen with http access: the .listing file is kept in sorted order! A changeset fixing this is attached. -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.14-1-686 Locale: LANG=fr_LU.UTF-8, LC_CTYPE=fr_LU.UTF-8 (charmap=UTF-8) Versions of packages tla depends on: ii diff 2.8.1-11 File comparison utilities ii gawk 1:3.1.5-1 GNU awk, a pattern scanning and pr ii libc6 2.3.5-9 GNU C Library: Shared libraries an ii libneon24 0.24.7.dfsg-3 An HTTP and WebDAV client library ii patch 2.5.9-2 Apply a diff file to an original tla recommends no packages. -- no debconf informationAttachment: ,,double-browse.tar.gz
Description: Binary data
--- End Message ---
--- Begin Message ---
- To: 344706-done@bugs.debian.org
- Subject: Re: "tla [ar]browse" on baz-format archive on sftp:// or filesystem has dupes
- From: Daniel Baumann <daniel@debian.org>
- Date: Mon, 07 Aug 2006 14:09:54 +0200
- Message-id: <44D72D92.3050307@debian.org>
- Reply-to: daniel@debian.org
Bug fixed in 1.3.5+dfsg-2, hence closing the bug. -- Address: Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist Email: daniel.baumann@panthera-systems.net Internet: http://people.panthera-systems.net/~daniel-baumann/
--- End Message ---