[PATCH] Change 'whenCacheOutOfDate' to use '>' again.

Nikita Karetnikov nikita at karetnikov.org
Fri Jul 25 13:44:57 UTC 2014


As some of you may know, I’m trying to make ‘cabal install’ verify
OpenPGP signatures that come from Hackage.  I modified
‘updatePackageIndexCacheFile’ to ask whether a certain OpenPGP public
key should be trusted, but I later discovered that the mentioned
function is called twice during ‘cabal update’*, which means that all
questions are also asked twice.

I believe this doesn’t affect #1443 anymore.  If so, please apply the
attached patch.

* ‘update’ uses ‘updateRepo’ and ‘checkForSelfUpgrade’.  The former runs
  ‘updatePackageIndexCacheFile’ via ‘updateRepoIndexCache’.  The latter
  calls ‘updatePackageIndexCacheFile’ via a sequence of calls from
  ‘getSourcePackages’ to ‘getSourcePackages’’ to ‘readRepoIndex’ to
  ‘whenCacheOutOfDate’.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Change-whenCacheOutOfDate-to-use-again.patch
Type: text/x-diff
Size: 946 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/cabal-devel/attachments/20140725/c768365c/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/cabal-devel/attachments/20140725/c768365c/attachment.sig>


More information about the cabal-devel mailing list