Merge branch 'master' of ssh://git-annex.branchable.com
This commit is contained in:
commit
eb9e7c44ee
2 changed files with 6 additions and 1 deletions
|
@ -124,6 +124,9 @@ rsyncUrlIsPath s
|
||||||
- after the \r is the number of bytes processed. After the number,
|
- after the \r is the number of bytes processed. After the number,
|
||||||
- there must appear some whitespace, or we didn't get the whole number,
|
- there must appear some whitespace, or we didn't get the whole number,
|
||||||
- and return the \r and part we did get, for later processing.
|
- and return the \r and part we did get, for later processing.
|
||||||
|
-
|
||||||
|
- In some locales, the number will have one or more commas in the middle
|
||||||
|
- of it.
|
||||||
-}
|
-}
|
||||||
parseRsyncProgress :: String -> (Maybe Integer, String)
|
parseRsyncProgress :: String -> (Maybe Integer, String)
|
||||||
parseRsyncProgress = go [] . reverse . progresschunks
|
parseRsyncProgress = go [] . reverse . progresschunks
|
||||||
|
@ -142,7 +145,7 @@ parseRsyncProgress = go [] . reverse . progresschunks
|
||||||
parsebytes s = case break isSpace s of
|
parsebytes s = case break isSpace s of
|
||||||
([], _) -> Nothing
|
([], _) -> Nothing
|
||||||
(_, []) -> Nothing
|
(_, []) -> Nothing
|
||||||
(b, _) -> readish b
|
(b, _) -> readish $ filter (/= ',') b
|
||||||
|
|
||||||
{- Filters options to those that are safe to pass to rsync in server mode,
|
{- Filters options to those that are safe to pass to rsync in server mode,
|
||||||
- without causing it to eg, expose files. -}
|
- without causing it to eg, expose files. -}
|
||||||
|
|
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -5,6 +5,8 @@ git-annex (5.20140406) UNRELEASED; urgency=medium
|
||||||
* Remove wget from OSX dmg, due to issues with cert paths that broke
|
* Remove wget from OSX dmg, due to issues with cert paths that broke
|
||||||
git-annex automatic upgrading. Instead, curl is used, unless the
|
git-annex automatic upgrading. Instead, curl is used, unless the
|
||||||
OSX system has wget installed, which will then be used.
|
OSX system has wget installed, which will then be used.
|
||||||
|
* Fix rsync progress parsing in locales that use comma in number display.
|
||||||
|
Closes: #744148
|
||||||
|
|
||||||
-- Joey Hess <joeyh@debian.org> Mon, 07 Apr 2014 16:22:02 -0400
|
-- Joey Hess <joeyh@debian.org> Mon, 07 Apr 2014 16:22:02 -0400
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue