remove old rpms
Don't want a mass of old versions of git-annex in rpm form cluttering up my server. Also, makerepo falls over when confronted with a dangling symlink.
This commit is contained in:
parent
c4e34cf55d
commit
c9a3336235
1 changed files with 5 additions and 1 deletions
|
@ -220,7 +220,11 @@ virusFree f
|
|||
|
||||
buildrpms :: FilePath -> [(FilePath, Version)] -> Annex ()
|
||||
buildrpms topdir l = do
|
||||
liftIO $ createDirectoryIfMissing True rpmrepo
|
||||
liftIO $ do
|
||||
createDirectoryIfMissing True rpmrepo
|
||||
oldrpms <- filter (".rpm" `isSuffixOf`)
|
||||
<$> getDirectoryContents rpmrepo
|
||||
mapM_ nukeFile oldrpms
|
||||
forM_ tarrpmarches $ \(tararch, rpmarch) ->
|
||||
forM_ (filter (isstandalonetarball tararch . fst) l) $ \(tarball, v) ->
|
||||
void $ liftIO $ boolSystem script
|
||||
|
|
Loading…
Reference in a new issue