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 :: FilePath -> [(FilePath, Version)] -> Annex ()
|
||||||
buildrpms topdir l = do
|
buildrpms topdir l = do
|
||||||
liftIO $ do
|
liftIO $ createDirectoryIfMissing True rpmrepo
|
||||||
createDirectoryIfMissing True rpmrepo
|
oldrpms <- map (rpmrepo </>) . filter (".rpm" `isSuffixOf`)
|
||||||
oldrpms <- filter (".rpm" `isSuffixOf`)
|
|
||||||
<$> getDirectoryContents rpmrepo
|
<$> getDirectoryContents rpmrepo
|
||||||
mapM_ nukeFile oldrpms
|
|
||||||
forM_ tarrpmarches $ \(tararch, rpmarch) ->
|
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
|
void $ liftIO $ boolSystem script
|
||||||
[ Param rpmarch
|
[ Param rpmarch
|
||||||
, File tarball
|
, File tarball
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue