CurryInfo: cpm-3.3.0 / CPM.Repository.Select.updatePackageInRepositoryCache

definition:
updatePackageInRepositoryCache :: Config -> Package -> ErrorLogger ()
updatePackageInRepositoryCache cfg pkg = do
  dbexists <- liftIOEL $ doesFileExist (repositoryCacheDB cfg)
  if dbexists then removePackageFromRepositoryDB cfg pkg >>
                   addPackagesToRepositoryDB cfg True [Left pkg]
              else cleanRepositoryCache cfg >> return ()
demand:
no demanded arguments
deterministic:
deterministic operation
documentation:
--- Updates an existing package in the repository cache.
--- In the file-based implementation, we simply clean the cache files.
failfree:
<FAILING>
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{(_,_) |-> _}
name:
updatePackageInRepositoryCache
precedence:
no precedence defined
result-values:
_
signature:
CPM.Config.Config -> CPM.Package.Package -> CPM.ErrorLogger.ErrorLogger ()
solution-complete:
operation might suspend on free variables
terminating:
possibly non-terminating
totally-defined:
possibly non-reducible on same data term