ensure_git_rev_available(v, self, new_gitpin, old_revision)
check_channel_contents(v, self)
return ChannelPin(
- release_name=self.release_name,
+ release_name=new_gitpin.release_name,
tarball_url=self.table['nixexprs.tar.xz'].absolute_url,
tarball_sha256=self.table['nixexprs.tar.xz'].digest,
git_revision=self.git_revision)
h1_name = d.getElementsByTagName('h1')[0].firstChild.nodeValue.split()[2]
v.status(title_name)
v.result(title_name == h1_name)
- channel.release_name = title_name
v.status('Extracting git commit:')
git_commit_node = d.getElementsByTagName('tt')[0]
digest_string(git_repo.encode()))
-def tarball_cache_file(channel: TarrableSearchPath) -> str:
+def tarball_cache_file(channel: TarrableSearchPath, pin: GitPin) -> str:
return os.path.join(
xdg.XDG_CACHE_HOME,
'pinch/git-tarball',
'%s-%s-%s' %
(digest_string(channel.git_repo.encode()),
- channel.git_revision,
- channel.release_name))
+ pin.git_revision,
+ pin.release_name))
def verify_git_ancestry(
v: Verification,
channel: TarrableSearchPath,
pin: GitPin) -> str:
- cache_file = tarball_cache_file(channel)
+ cache_file = tarball_cache_file(channel, pin)
if os.path.exists(cache_file):
cached_tarball = open(cache_file).read(9999)
if os.path.exists(cached_tarball):