+# pinch: PIN CHannels - a replacement for `nix-channel --update`
+#
+# This program is free software: you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation, version 3.
+
+
import argparse
import configparser
import filecmp
class AliasSearchPath(NamedTuple):
alias_of: str
- # pylint: disable=no-self-use
def pin(self, _: Verification, __: Optional[Pin]) -> AliasPin:
return AliasPin()
class SymlinkSearchPath(NamedTuple):
path: str
- # pylint: disable=no-self-use
def pin(self, _: Verification, __: Optional[Pin]) -> SymlinkPin:
return SymlinkPin()
tarball_sha256=table['nixexprs.tar.xz'].digest,
git_revision=new_gitpin.git_revision)
- # pylint: disable=no-self-use
def fetch(self, v: Verification, pin: Pin) -> str:
assert isinstance(pin, ChannelPin)