Bladeren bron

Fix exceptions thrown by `setup.py build_man`

While doing some doc updates I needed a way to test them - to build
the documentation and inspect the output. I ran into an issue:
running python setup.py build_man was throwing exceptions:

1. The import-tar parser had a None description causing:

    File "/home/user/borg/setup_docs.py", line 451, in write_heading
      write(char * len(header))
    TypeError: object of type 'NoneType' has no len()

2. There was no docs/usage/import-tar.rst causing an exception too
Andrey Bienkowski 3 jaren geleden
bovenliggende
commit
37e1ae4735
2 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  1. 1 0
      docs/usage/import-tar.rst
  2. 1 0
      src/borg/archiver.py

+ 1 - 0
docs/usage/import-tar.rst

@@ -0,0 +1 @@
+.. include:: import-tar.rst.inc

+ 1 - 0
src/borg/archiver.py

@@ -1656,6 +1656,7 @@ class Archiver:
 
     @with_repository(cache=True, exclusive=True, compatibility=(Manifest.Operation.WRITE,))
     def do_import_tar(self, args, repository, manifest, key, cache):
+        """Create a backup archive from a tarball"""
         self.output_filter = args.output_filter
         self.output_list = args.output_list