only delete old rpms for arches that have a new rpm
This commit is contained in:
parent
73c9a6e7d7
commit
6b2e471330
1 changed files with 5 additions and 6 deletions
|
@ -220,13 +220,12 @@ virusFree f
|
|||
|
||||
buildrpms :: FilePath -> [(FilePath, Version)] -> Annex ()
|
||||
buildrpms topdir l = do
|
||||
liftIO $ do
|
||||
createDirectoryIfMissing True rpmrepo
|
||||
oldrpms <- filter (".rpm" `isSuffixOf`)
|
||||
<$> getDirectoryContents rpmrepo
|
||||
mapM_ nukeFile oldrpms
|
||||
liftIO $ createDirectoryIfMissing True rpmrepo
|
||||
oldrpms <- map (rpmrepo </>) . filter (".rpm" `isSuffixOf`)
|
||||
<$> getDirectoryContents rpmrepo
|
||||
forM_ tarrpmarches $ \(tararch, rpmarch) ->
|
||||
forM_ (filter (isstandalonetarball tararch . fst) l) $ \(tarball, v) ->
|
||||
forM_ (filter (isstandalonetarball tararch . fst) l) $ \(tarball, v) -> do
|
||||
mapM_ nukeFile (filter ((tararch ++ ".rpm") `isSuffixOf`) oldrpms)
|
||||
void $ liftIO $ boolSystem script
|
||||
[ Param rpmarch
|
||||
, File tarball
|
||||
|
|
Loading…
Reference in a new issue