fix build failure on i386-ancient
Standalone: tmp/git-annex.linux/usr/lib/i386-linux-gnu/i686: renameFile: inappropriate type (is a directory)
This commit is contained in:
parent
4466c1001d
commit
ae325018eb
1 changed files with 5 additions and 4 deletions
|
@ -74,11 +74,12 @@ consolidateUsrLib top libdirs = go [] libdirs
|
||||||
go c (x:rest) = case filter (\d -> ("/usr" ++ d) == x) libdirs of
|
go c (x:rest) = case filter (\d -> ("/usr" ++ d) == x) libdirs of
|
||||||
(d:_) -> do
|
(d:_) -> do
|
||||||
fs <- getDirectoryContents (inTop top x)
|
fs <- getDirectoryContents (inTop top x)
|
||||||
forM_ fs $ \f ->
|
forM_ fs $ \f -> do
|
||||||
|
let src = inTop top (x </> f)
|
||||||
|
let dst = inTop top (d </> f)
|
||||||
unless (dirCruft f) $
|
unless (dirCruft f) $
|
||||||
renameFile
|
unlessM (doesDirectoryExist src) $
|
||||||
(inTop top (x </> f))
|
renameFile src dst
|
||||||
(inTop top (d </> f))
|
|
||||||
go c rest
|
go c rest
|
||||||
_ -> go (x:c) rest
|
_ -> go (x:c) rest
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue