[gtk-doc] Fix a missed variable rename in ScanDirectory (caused a crash)



commit 469bad354f876e21b48875b31ef931167a64690d
Author: Adam Williamson <awilliam redhat com>
Date:   Thu May 10 11:00:17 2018 -0700

    Fix a missed variable rename in ScanDirectory (caused a crash)
    
    halfline ran into gtk-doc crashing when he was trying to cut an
    accountsservice release; looking into it we found that the first
    arg to ScanDirectory was renamed from `dir` to `scan_dir` in
    9292e0a (to avoid overriding a builtin, I guess) but this one
    reference to it was not changed. This should fix it.
    
    Signed-off-by: Adam Williamson <awilliam redhat com>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=796011

 gtkdoc/rebase.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtkdoc/rebase.py b/gtkdoc/rebase.py
index 424c3e6..2a1d495 100755
--- a/gtkdoc/rebase.py
+++ b/gtkdoc/rebase.py
@@ -108,7 +108,7 @@ def ScanDirectory(scan_dir, options):
 
         if onlinedir and entry == "index.sgml":
             log(options, "Reading index from index.sgml")
-            onlinedir = ReadIndex(dir, entry)
+            onlinedir = ReadIndex(scan_dir, entry)
             have_index = True
         elif entry == "index.sgml.gz" and not os.path.exists(os.path.join(scan_dir, 'index.sgml')):
             # debian/ubuntu started to compress this as index.sgml.gz :/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]