Package: simple-cdd
Version: 0.6.6
Severity: normal

Version 0.6.5 introduced a checksum check based on the data from
the "extrafiles" file at the root of the mirror. Now when that
file doesn't exist, simple-cdd fails with a stacktrace and is
unable to build any image.

Arguably, the lack of this file is not a showstopper, it should
just generate a warning... and effectively there are many custom
Debian repositories without this file and you still want to be able
to run simple-cdd on them.

In my specific case, the Debian mirror is created with "debmirror"
and this tool doesn't include that file. But I could also mention the
case of many derivatives that just use reprepro.

Also it would be nice if simple-cdd documented somewhere its requirements for
the mirror and repositories that it can use.

FTR here's the stacktrace:
2018-09-18 14:36:26,005 DEBUG Building local Debian mirror for debian-cd...
2018-09-18 14:36:26,007 DEBUG downloading: .../tmp/mirror/extrafiles
Traceback (most recent call last):
  File "/usr/bin/build-simple-cdd", line 658, in <module>
    scdd.build_mirror()
  File "/usr/bin/build-simple-cdd", line 270, in build_mirror
    self.run_tool("mirror", tool)
  File "/usr/bin/build-simple-cdd", line 367, in run_tool
    tool.run()
  File "/usr/lib/python3/dist-packages/simple_cdd/tools/mirror_wget.py", line 
64, in
run
    _download(download_extrafiles_file, extrafiles_file_inlinesig)
  File "/usr/lib/python3/dist-packages/simple_cdd/tools/mirror_wget.py", line 
55, in
_download
    request.urlretrieve(url, filename=output)
  File "/usr/lib/python3.5/urllib/request.py", line 188, in urlretrieve
    with contextlib.closing(urlopen(url, data)) as fp:
  File "/usr/lib/python3.5/urllib/request.py", line 163, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.5/urllib/request.py", line 472, in open
    response = meth(req, response)
  File "/usr/lib/python3.5/urllib/request.py", line 582, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.5/urllib/request.py", line 510, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.5/urllib/request.py", line 444, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.5/urllib/request.py", line 590, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found


-- System Information:
Debian Release: buster/sid
  APT prefers oldoldstable
  APT policy: (500, 'oldoldstable'), (500, 'unstable'), (500, 'testing'), (500, 
'stable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.18.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages simple-cdd depends on:
ii  dctrl-tools         2.24-2+b1
ii  debian-cd           3.1.21
ii  lsb-release         9.20170808
ii  python3             3.6.6-1
ii  python3-simple-cdd  0.6.6
ii  reprepro            5.2.0-1
ii  rsync               3.1.2-2.2
ii  wget                1.19.5-2

Versions of packages simple-cdd recommends:
ii  dose-distcheck  5.0.1-11+b1

Versions of packages simple-cdd suggests:
ii  qemu-kvm  1:2.12+dfsg-3

-- no debconf information

Reply via email to