-
56626816
by Andrew Gregory at 2023-12-02T04:56:25+00:00
dload: differentiate between hard and soft errors
Set error count to -1 to indicate a hard error to allow them to be
treated differently.
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
-
3aa1975c
by Andrew Gregory at 2023-12-02T04:56:25+00:00
alpm: add cache server support
Cache servers differ from regular servers in that they do not produce
warnings and are not removed from the server pool for "soft errors"
(i.e. the server was reachable, but the download failed) and they are
not used for databases. If a host is used for both a cache server and a
regular server, it may still be removed from the server pool for soft
errors that occur when used as cache server and removal from the server
pool for soft errors will not affect future attempted use as a cache
server.
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
-
45e94e2d
by Andrew Gregory at 2023-12-02T04:56:25+00:00
pmtest: return pkg from addpkg2db
Allows more compact syntax:
p1 = self.addpkg2db('sync', pmpkg("foo"))
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
-
bad3e13e
by Andrew Gregory at 2023-12-02T04:56:25+00:00
conf.c: remove unnecessary _add_mirror function
It does very little, is only used in one place, and can't easily be
reused for other server types due to the inclusion of an error message.
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
-
dc914765
by Andrew Gregory at 2023-12-02T04:56:25+00:00
pacman: add cache server support
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
-
0df44c2e
by Andrew Gregory at 2023-12-02T04:56:25+00:00
db.c: set pm_errno for server list modifications
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>