Implement media doesFileExists().
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Wed, 16 Aug 2006 15:36:35 +0000 (15:36 +0000)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Wed, 16 Aug 2006 15:36:35 +0000 (15:36 +0000)
commit88af32e4ae8158d7d4da9b554104d0b8491dad75
tree8272622c5b85d00a2b0756546cae8bd8338663dc
parent5f4f6ebba1a4dcb445d72b19d10729ce873aadf2
Implement media doesFileExists().

Current way to do that is to provide, and if t
fails, it doesnt exists, but if it succeeds, then
you do a transfer :-( So doesFileExists to the rescue

The current implementation does a partial
transfer of 100 bytes, as using NOBODY option
of curl doesn't work for ftp.

It can be optimized using different methods
for different URL schemes. It is not yet
used but it wll be used in the source
probing.

Marius, please give it a look when you are back.
15 files changed:
devel/devel.dmacvicar/Makefile.am
devel/devel.dmacvicar/media-glob.cc [new file with mode: 0644]
zypp/media/MediaAccess.cc
zypp/media/MediaAccess.h
zypp/media/MediaCD.cc
zypp/media/MediaCurl.cc
zypp/media/MediaDIR.cc
zypp/media/MediaDISK.cc
zypp/media/MediaHandler.cc
zypp/media/MediaHandler.h
zypp/media/MediaISO.cc
zypp/media/MediaManager.cc
zypp/media/MediaManager.h
zypp/media/MediaNFS.cc
zypp/media/MediaSMB.cc