1. 08 Jan, 2020 3 commits
  2. 29 Dec, 2019 5 commits
  3. 28 Dec, 2019 11 commits
    • Holger Levsen's avatar
      Bump debhelper-compat to 12. · 2f15d124
      Holger Levsen authored
      
      
      after confirming with diffoscope that the changes are sane
      
      Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
      2f15d124
    • Holger Levsen's avatar
      d/rules: set GOCACHE to a safely writable directory during build as the cache... · f1b72b2e
      Holger Levsen authored
      
      d/rules: set GOCACHE to a safely writable directory during build as the cache is mandatory with Go 1.12.
      
      Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
      f1b72b2e
    • Holger Levsen's avatar
    • Holger Levsen's avatar
    • Holger Levsen's avatar
      extend changelog for Nis · 837d794e
      Holger Levsen authored
      
      
      Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
      837d794e
    • Nis Martensen's avatar
      piuparts-report: handle EOFError with pickle.load() · f70767fe
      Nis Martensen authored and Holger Levsen's avatar Holger Levsen committed
      
      
      Do not error out if the cache file is empty.
      
      Fixes:
      
      Traceback (most recent call last):
        File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1911, in <module>
          main()
        File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1851, in main
          section.generate_output(output_directory, section_names, problem_list, web_host)
        File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1660, in generate_output
          self.generate_html()
        File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1563, in generate_html
          self._md5cache['old'] = pickle.load(f)
      EOFError: Ran out of input
      
      Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
      f70767fe
    • Nis Martensen's avatar
      piuparts-report, piuparts: pickle needs binary file streams · 08f9a354
      Nis Martensen authored and Holger Levsen's avatar Holger Levsen committed
      
      
      Fixes:
      
      Traceback (most recent call last):
        File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1911, in <module>
          main()
        File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1851, in main
          section.generate_output(output_directory, section_names, problem_list, web_host)
        File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1660, in generate_output
          self.generate_html()
        File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1600, in generate_html
          pickle.dump(self._md5cache['new'], f)
      TypeError: write() argument must be str, not bytes
      
      Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
      08f9a354
    • Nis Martensen's avatar
      piuparts-report: give hashlib the bytes it needs · 484bc88e
      Nis Martensen authored and Holger Levsen's avatar Holger Levsen committed
      
      
      Fixes:
      
      Traceback (most recent call last):
        File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1911, in <module>
          main()
        File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1851, in main
          section.generate_output(output_directory, section_names, problem_list, web_host)
        File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1660, in generate_output
          self.generate_html()
        File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1580, in generate_html
          self.print_by_dir(self._output_directory, logs_by_dir)
        File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 943, in print_by_dir
          desc_by_dir[vdir], vlist)
        File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 930, in write_log_list_page
          "logrows": "".join(lines),
        File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 890, in _write_template_html
          write_template_html(filename, body, mapping, defer_if_unmodified=defer_if_unmodified, md5cache=self._md5cache)
        File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 714, in write_template_html
          content_md5 = hashlib.md5(htmlpage.safe_substitute(mapping)).hexdigest()
      TypeError: Unicode-objects must be encoded before hashing
      
      Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
      484bc88e
    • Nis Martensen's avatar
      piuparts-report: fix 'dict_keys has no attribute remove' · cc30509e
      Nis Martensen authored and Holger Levsen's avatar Holger Levsen committed
      
      
      In python3 dict().keys() returns a dict_keys() view and not a list as in
      python2. Replace the now unavailable remove() by a set subtraction.
      
      Fixes:
      
      Traceback (most recent call last):
        File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1911, in <module>
          main()
        File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1851, in main
          section.generate_output(output_directory, section_names, problem_list, web_host)
        File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1660, in generate_output
          self.generate_html()
        File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1574, in generate_html
          self.cleanup_removed_packages(logs_by_dir)
        File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1536, in cleanup_removed_packages
          vdirs.remove("reserved")
      AttributeError: 'dict_keys' object has no attribute 'remove'
      
      Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
      cc30509e
    • Nis Martensen's avatar
      fix piupartslib imports · dd4cd1a8
      Nis Martensen authored and Holger Levsen's avatar Holger Levsen committed
      
      
      During the port to python3 piupartslib was changed to no longer
      auto-import some of its submodules. Import the required submodules
      directly where now needed.
      
      Fixes:
      
      Traceback (most recent call last):
        File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1910, in <module>
          main()
        File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 1849, in main
          section = Section(section_name, master_directory, doc_root, packagedb_cache=packagedb_cache)
        File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 827, in __init__
          self._load_package_database(section, master_directory)
        File "/srv/piuparts.debian.org/share/piuparts/piuparts-report", line 859, in _load_package_database
          db = piupartslib.packagesdb.PackagesDB(prefix=sectiondir)
      AttributeError: module 'piupartslib' has no attribute 'packagesdb'
      
      Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
      dd4cd1a8
    • Nis Martensen's avatar
      piuparts-master-backend: handle BrokenPipeError · 9171821b
      Nis Martensen authored and Holger Levsen's avatar Holger Levsen committed
      
      
      No need to crash with a stacktrace when the slave is gone and the pipe
      to it is broken. Just log this and exit 1.
      
      Fixes:
      
      Traceback (most recent call last):
        File "/srv/piuparts.debian.org/share/piuparts/piuparts-master-backend", line 433, in <module>
          main()
        File "/srv/piuparts.debian.org/share/piuparts/piuparts-master-backend", line 423, in main
          m = Master(sys.stdin, sys.stdout)
        File "/srv/piuparts.debian.org/share/piuparts/piuparts-master-backend", line 154, in __init__
          self._writeline("hello")
        File "/srv/piuparts.debian.org/share/piuparts/piuparts-master-backend", line 111, in _writeline
          self._output.flush()
      BrokenPipeError: [Errno 32] Broken pipe
      Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>
      BrokenPipeError: [Errno 32] Broken pipe
      
      Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
      9171821b
  4. 27 Dec, 2019 4 commits
  5. 26 Dec, 2019 4 commits
  6. 25 Dec, 2019 1 commit
  7. 03 Nov, 2019 1 commit
  8. 02 Nov, 2019 1 commit
  9. 10 Sep, 2019 7 commits
  10. 04 Sep, 2019 3 commits