Big refactoring of MediaSetAccess
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Fri, 13 Feb 2009 14:07:34 +0000 (15:07 +0100)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Fri, 13 Feb 2009 14:07:34 +0000 (15:07 +0100)
commit3111bd808dfc89af98b77f4b84cfef9ca58704c2
tree4203ee737a4c12223a31935e36f27522c41abc5a
parent9f0f5c732a49bab466224b55dddb23dd0fd12387
Big refactoring of MediaSetAccess

- deprecate MediaSetAccess::provdeOptionalFile
- remove the mess of boolean cached, checkonly and stuff.
- For non-interactive (except for media change) there is a flag
  NON_INTERACTIVE which is accepted by provide*
- Downloaders don't need doesFileExist anymore.
- Exceptions are thrown. If you need ignore functionality, Fetcher
  has it, using OnMediaLocation::optional()
- refactor MediaSetAccess provideFile, provideDir in one common function
  removing tons of duplicated code

Pending/Next: refactor doesFileExist somehow (may be templating)
Fix doesFileExist in aria (may be with a curl external cmd line
implementation) using the following command line options

curl -I
-A agent
--basic
--digest
--connect-timeout
--cookie-jar
--anyauth
header -H "Host:"
--location
--no-keepalive ?
--proxy-basic / digest /negotiate
--proxytunnerl
-r 0-1
--user <user:password>
--proxy-user user:pass
--proxy <proxyhost[:port]>
devel/devel.dmacvicar/CMakeLists.txt
devel/devel.dmacvicar/testbed.cc
zypp/Fetcher.cc
zypp/MediaSetAccess.cc
zypp/MediaSetAccess.h
zypp/media/MediaManager.cc
zypp/media/MediaManager.h
zypp/repo/susetags/Downloader.cc
zypp/repo/yum/Downloader.cc