Fix wording of message displayed when unable to get a file that is available in untrusted repositories.
This commit is contained in:
parent
3abb775855
commit
23d2519be1
4 changed files with 9 additions and 5 deletions
|
@ -156,7 +156,7 @@ notEnoughCopies key need have skip bad = do
|
|||
show (length have) ++ " out of " ++ show (fromNumCopies need) ++
|
||||
" necessary copies"
|
||||
Remote.showTriedRemotes bad
|
||||
Remote.showLocations key (have++skip)
|
||||
Remote.showLocations True key (have++skip)
|
||||
"Rather than dropping this file, try using: git annex move"
|
||||
hint
|
||||
return False
|
||||
|
|
|
@ -79,7 +79,7 @@ getKeyFile' key afile dest = dispatch
|
|||
( docopy r witness <||> trycopy full rs witness
|
||||
, trycopy full rs witness
|
||||
)
|
||||
showlocs = Remote.showLocations key []
|
||||
showlocs = Remote.showLocations False key []
|
||||
"No other repository is known to contain the file."
|
||||
-- This check is to avoid an ugly message if a remote is a
|
||||
-- drive that is not mounted.
|
||||
|
|
|
@ -272,11 +272,13 @@ keyPossibilities' key trusted = do
|
|||
return (sortBy (comparing cost) validremotes, validtrusteduuids)
|
||||
|
||||
{- Displays known locations of a key. -}
|
||||
showLocations :: Key -> [UUID] -> String -> Annex ()
|
||||
showLocations key exclude nolocmsg = do
|
||||
showLocations :: Bool -> Key -> [UUID] -> String -> Annex ()
|
||||
showLocations separateuntrusted key exclude nolocmsg = do
|
||||
u <- getUUID
|
||||
uuids <- keyLocations key
|
||||
untrusteduuids <- trustGet UnTrusted
|
||||
untrusteduuids <- if separateuntrusted
|
||||
then trustGet UnTrusted
|
||||
else pure []
|
||||
let uuidswanted = filteruuids uuids (u:exclude++untrusteduuids)
|
||||
let uuidsskipped = filteruuids uuids (u:exclude++uuidswanted)
|
||||
ppuuidswanted <- prettyPrintUUIDs "wanted" uuidswanted
|
||||
|
|
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -10,6 +10,8 @@ git-annex (5.20150114) UNRELEASED; urgency=medium
|
|||
made after two LOSTNET messages were received in a row (perhaps due to
|
||||
two different network interfaces being brought down).
|
||||
* Fix build failure when wget is not installed.
|
||||
* Fix wording of message displayed when unable to get a file that
|
||||
is available in untrusted repositories.
|
||||
|
||||
-- Joey Hess <id@joeyh.name> Tue, 13 Jan 2015 17:03:39 -0400
|
||||
|
||||
|
|
Loading…
Reference in a new issue