Your message dated Sun, 18 Sep 2016 10:37:30 +0000
with message-id <>
and subject line Bug#825293: fixed in apt-file 3.1
has caused the Debian Bug report #825293,
regarding apt: please add support for Contents-udeb-* files
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact

Debian Bug Tracking System
Contact with problems
--- Begin Message ---
Package: apt
Version: 1.3~exp1
Severity: important

[ debian-boot@ and apt-file@ people in x-d-cc. ]


apt-file now relies on apt/apt-get indextargets to download/list
Contents files, and Contents-udeb-* files are missing at the moment.

Tracing this down into apt, it seemed GetIndexTargets needed a few
changes to get the proper filenames. AFAICT it's important to have both
MetaKey and ShortDesc to match reality, given the 4th parameter passed
to the Indextarget sets the URI based on the MetaKey, which is then used
to return the filename used in DoIndexTargets (cmdline/

I'm entirely unsure this is the right place/way to patch those things,
but that seems to work for all intents and purposes:

    (sid-amd64-devel)kibi@wodi:~/hack/apt.git$ apt-file search efivars.ko|grep 
-- -di:

I'm not sure about the following parts, but I suppose d-i is special
enough that people having “main/debian-installer” bits in their
sources.list shouldn't be too shocked by possible inconsistencies…

    MetaKey: main/Contents-udeb-amd64
    ShortDesc: Contents-udeb-amd64
    Description: file:/srv/mirrors/debian sid/main/debian-installer amd64 
Contents (deb)     <--- Contents (udeb)?
    URI: file:///srv/mirrors/debian/dists/sid/main/Contents-udeb-amd64
    Optional: yes
    KeepCompressed: yes
    Codename: sid
    Label: Debian
    Origin: Debian
    Suite: unstable
    Trusted: yes
    Architecture: amd64
    Base-URI: file:///srv/mirrors/debian/dists/sid/
    By-Hash: yes
    Component: main/debian-installer
    CompressionTypes: xz bz2 lzma gz lz4 uncompressed
    Created-By: Contents-deb                                                    
             <--- Doesn't seem to appear in dak, daklib/ iterates on 
deb+udeb; apt-specific?
    DefaultEnabled: yes
    Identifier: Contents-deb                                                    
             <--- Contents-udeb? See above.
    KeepCompressedAs: lz4 gz xz bz2 lzma uncompressed
    PDiffs: yes
    Release: sid
    Repo-URI: file:///srv/mirrors/debian/
    Site: file:/srv/mirrors/debian
    Sourcesentry: /etc/apt/sources.list:1
    Target-Of: deb                                                              
             <--- probably ok, either deb or deb-src AFAICT.

Thanks for considering.

>From 456b5f5c8b1a9a85615054673e70ad74f30da4e9 Mon Sep 17 00:00:00 2001
From: Cyril Brulebois <>
Date: Wed, 25 May 2016 17:54:58 +0200
Subject: [PATCH] Add support for retrieving and listing Contents-udeb-* files.

Since apt-file now relies on apt-get indextargets to figure out which Contents
files to look for, it's important for apt to downloads Contents-udeb-* instead
of trying to download non-existing debian-installer/Contents-* files.

Rewrite MetaKey and ShortDesc accordingly, which enables apt-file to search into

Signed-off-by: Cyril Brulebois <>
 apt-pkg/deb/ | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/apt-pkg/deb/ b/apt-pkg/deb/
index f756cdb..4184d00 100644
--- a/apt-pkg/deb/
+++ b/apt-pkg/deb/
@@ -238,6 +238,16 @@ static void GetIndexTargetsFor(char const * const Type, std::string const &URI,
 		     ShortDesc = SubstVar(ShortDesc, varname, O->second);
 		     LongDesc = SubstVar(LongDesc, varname, O->second);
 		     Identifier = SubstVar(Identifier, varname, O->second);
+		     // Rewrite debian-installer/Contents into Contents-udeb for
+		     // MetaKey and Contents into Contents-udeb for ShortDesc:
+                     std::string di_contents_token = "debian-installer/Contents-";
+                     std::string contents_token = "Contents-";
+                     size_t di_pos = MetaKey.find(di_contents_token);
+                     if (di_pos != std::string::npos) {
+                       MetaKey = MetaKey.substr(0, di_pos) + "Contents-udeb-" + MetaKey.substr(di_pos + di_contents_token.length());
+                       ShortDesc = "Contents-udeb-" + ShortDesc.substr(contents_token.length());
+                     }

--- End Message ---
--- Begin Message ---
Source: apt-file
Source-Version: 3.1

We believe that the bug you reported is fixed in the latest version of
apt-file, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
Niels Thykier <> (supplier of updated apt-file package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing

Hash: SHA256

Format: 1.8
Date: Sun, 18 Sep 2016 09:59:50 +0000
Source: apt-file
Binary: apt-file
Architecture: source
Version: 3.1
Distribution: unstable
Urgency: medium
Maintainer: APT Development Team <>
Changed-By: Niels Thykier <>
 apt-file   - search for files within Debian packages (command-line interface)
Closes: 820560 821016 825293 825883 832131
 apt-file (3.1) unstable; urgency=medium
   * Move apt-file under the APT packaging team.
   * apt-file: Fix bug in handling patterns starting with "-".
     Thanks to Paul Wise for reporting the issue.
     (Closes: #821016)
   * apt-file: Fix bug where package listing did not work if the
     Contents files did not include sections.  Thanks to
     "Unit 193" for the report.  (Closes: #820560)
   * Correct path to the "partial" directory.
     Thanks to Ritesh Raj Sarraf for the report.  (Closes: #832131)
   * apt-file, 50apt-file.conf: Support fetching of Contents files
     in legacy locations (as used by Ubuntu) by default.  This
     requires apt 1.3.
   * apt-file: Support setting a default value for -I/--index-names
     in the apt config file.  Thanks to Cyril Brulebois for the
     suggestion (part of #825293)
   * apt-file: Accept "ALL" as a special index name for -I.  When
     given, apt-file will search all of its indices.  Thanks to
     Cyril Brulebois for the suggestion (part of #825293).
   * debian/NEWS: Clarify that the indices for source packages and
     udebs are disabled in the apt-file 2 -> 3 transition.  These
     must be manually reabled.  Thanks to Cyril Brulebois for the
     report.  (Closes: #825293)
   * apt-file: Exit with an error if a subprocess exits non-zero
     (except for grep) or is killed by a signal.  Thanks to
     Paul Wise for the suggestion.  (Closes: #825883)
   * Set debhelper compat to "beta-tester" and bump the minimum
     requirements for debhelper to 10.
   * Bump Standards-Versions to 3.9.8 - no changes required.
 798450f4eb765d8bda5c815d47d318e52745abee 1730 apt-file_3.1.dsc
 691649837bef2f9d6b1d590a5434da29f58d510e 42032 apt-file_3.1.tar.xz
 2ddacc683200a4cbfcde224094fa1e8c5a80763587a16919503607cf78c38aaf 1730 
 0784cc7be70b2742d02af0d3c193e76c649e6842865fbd94209a79ce06cd0574 42032 
 2d17f7b65a1bce3a595554de9855add6 1730 admin optional apt-file_3.1.dsc
 4bb93d00cbd53ca96117262dc6ece996 42032 admin optional apt-file_3.1.tar.xz



--- End Message ---

Reply via email to