sync with archive.org always
This commit is contained in:
parent
9717915635
commit
fcdd6d0c53
1 changed files with 4 additions and 3 deletions
|
@ -66,10 +66,12 @@ main = do
|
||||||
changeWorkingDirectory repodir
|
changeWorkingDirectory repodir
|
||||||
updated <- catMaybes <$> mapM (getbuild repodir) autobuilds
|
updated <- catMaybes <$> mapM (getbuild repodir) autobuilds
|
||||||
state <- Annex.new =<< Git.Construct.fromPath "."
|
state <- Annex.new =<< Git.Construct.fromPath "."
|
||||||
Annex.eval state $ do
|
ood <- Annex.eval state $ do
|
||||||
buildrpms topdir updated
|
buildrpms topdir updated
|
||||||
makeinfos updated version
|
makeinfos updated version
|
||||||
syncToArchiveOrg
|
syncToArchiveOrg
|
||||||
|
unless (null ood) $
|
||||||
|
error $ "Some info files are out of date: " ++ show (map fst ood)
|
||||||
|
|
||||||
-- Download a build from the autobuilder, virus check it, and return its
|
-- Download a build from the autobuilder, virus check it, and return its
|
||||||
-- version.
|
-- version.
|
||||||
|
@ -167,8 +169,7 @@ makeinfos updated version = do
|
||||||
ds <- liftIO $ forM infos (readish <$$> readFile)
|
ds <- liftIO $ forM infos (readish <$$> readFile)
|
||||||
let dis = zip infos ds
|
let dis = zip infos ds
|
||||||
let ood = filter outofdate dis
|
let ood = filter outofdate dis
|
||||||
unless (null ood) $
|
return ood
|
||||||
error $ "Some info files are out of date: " ++ show (map fst ood)
|
|
||||||
where
|
where
|
||||||
outofdate (_, md) = case md of
|
outofdate (_, md) = case md of
|
||||||
Nothing -> True
|
Nothing -> True
|
||||||
|
|
Loading…
Add table
Reference in a new issue