Support "inbackend" in preferred content expressions

Well, actually, fix a typo that has always been in the implementation of
that. "inbacked" used to work, but let's not tell users about that; they
might try to use it and expect git-annex to keep supporting the typo..

Sponsored-by: Jack Hill on Patreon
This commit is contained in:
Joey Hess 2022-09-26 16:06:49 -04:00
parent 640e2646a1
commit 7059322a6c
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
4 changed files with 14 additions and 3 deletions

View file

@ -180,7 +180,7 @@ preferredContentKeyedTokens pcd =
, ValueToken "copies" (usev limitCopies)
, ValueToken "lackingcopies" (usev $ limitLackingCopies False)
, ValueToken "approxlackingcopies" (usev $ limitLackingCopies True)
, ValueToken "inbacked" (usev limitInBackend)
, ValueToken "inbackend" (usev limitInBackend)
, ValueToken "metadata" (usev limitMetaData)
, ValueToken "inallgroup" (usev $ limitInAllGroup $ getGroupMap pcd)
] ++ commonKeyedTokens

View file

@ -1,4 +1,4 @@
git-annex (10.20220823) UNRELEASED; urgency=medium
git-annex (10.20220927) UNRELEASED; urgency=medium
* Fix a bug in the last release that caused v8 repositories to upgrade
immediately to v10, rather than taking the scheduled 1 year to do so.
@ -43,6 +43,7 @@ git-annex (10.20220823) UNRELEASED; urgency=medium
in a repository owned by another user.
* p2p: Pass wormhole the --appid option before the receive/send command,
as it does not accept that option after the command
* Support "inbackend" in preferred content expressions.
-- Joey Hess <id@joeyh.name> Mon, 29 Aug 2022 15:03:04 -0400

View file

@ -0,0 +1,10 @@
[[!comment format=mdwn
username="joey"
subject="""comment 6"""
date="2022-09-26T19:53:52Z"
content="""
@rinomizu5 congrats, you found a bug!
I've fixed this, so you'll want to upgrade to version 10.20220927 when
it's released tomorrow.
"""]]

View file

@ -1,5 +1,5 @@
Name: git-annex
Version: 10.20220822
Version: 10.20220927
Cabal-Version: 1.12
License: AGPL-3
Maintainer: Joey Hess <id@joeyh.name>