]> git.scottworley.com Git - pinch/commitdiff
read_search_path returns a SearchPath
authorScott Worley <scottworley@scottworley.com>
Sat, 13 Jun 2020 06:45:56 +0000 (23:45 -0700)
committerScott Worley <scottworley@scottworley.com>
Thu, 18 Jun 2020 06:11:59 +0000 (23:11 -0700)
pinch.py

index 632994b8061a32a24f7c1e0bdfdd8252ffc17d72..7049b69134f7ac114c58d815662c221817972c37 100644 (file)
--- a/pinch.py
+++ b/pinch.py
@@ -527,7 +527,7 @@ def git_revision_name(v: Verification, channel: Channel) -> str:
                       process.stdout.decode().strip())
 
 
-def read_search_path(conf: configparser.SectionProxy) -> Channel:
+def read_search_path(conf: configparser.SectionProxy) -> SearchPath:
     return Channel(**dict(conf.items()))
 
 
@@ -544,9 +544,9 @@ def pin(args: argparse.Namespace) -> None:
         if args.channels and section not in args.channels:
             continue
 
-        channel = read_search_path(config[section])
+        sp = read_search_path(config[section])
 
-        channel.pin(v, config[section])
+        sp.pin(v, config[section])
 
     with open(args.channels_file, 'w') as configfile:
         config.write(configfile)