فهرست منبع

Merge pull request #3377 from milkey-mouse/fix-build-man

Fix build_man issues
TW 7 سال پیش
والد
کامیت
c312a9a95b
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      setup.py
  2. 1 1
      src/borg/archiver.py

+ 1 - 1
setup.py

@@ -678,7 +678,7 @@ class build_man(Command):
         roles.register_local_role('issue', issue)
         roles.register_local_role('issue', issue)
         # We give the source_path so that docutils can find relative includes
         # We give the source_path so that docutils can find relative includes
         # as-if the document where located in the docs/ directory.
         # as-if the document where located in the docs/ directory.
-        man_page = publish_string(source=rst, source_path='docs/virtmanpage.rst', writer=manpage.Writer())
+        man_page = publish_string(source=rst, source_path='docs/%s.rst' % name, writer=manpage.Writer())
         with open('docs/man/%s.1' % name, 'wb') as fd:
         with open('docs/man/%s.1' % name, 'wb') as fd:
             fd.write(man_page)
             fd.write(man_page)
 
 

+ 1 - 1
src/borg/archiver.py

@@ -3762,7 +3762,7 @@ class Archiver:
         R- == borg extract (extract archive, dry-run, do everything, but do not write files to disk)
         R- == borg extract (extract archive, dry-run, do everything, but do not write files to disk)
               R-Z- == all zero files. Measuring heavily duplicated files.
               R-Z- == all zero files. Measuring heavily duplicated files.
               R-R- == random files. No duplication here, measuring throughput through all processing
               R-R- == random files. No duplication here, measuring throughput through all processing
-                      stages, except writing to disk.
+              stages, except writing to disk.
 
 
         U- == borg create (2nd archive creation of unchanged input files, measure files cache speed)
         U- == borg create (2nd archive creation of unchanged input files, measure files cache speed)
               The throughput value is kind of virtual here, it does not actually read the file.
               The throughput value is kind of virtual here, it does not actually read the file.