quickfix for ftp response to MDTM
authorMichael Andres <ma@suse.de>
Wed, 12 Nov 2008 15:47:24 +0000 (15:47 +0000)
committerMichael Andres <ma@suse.de>
Wed, 12 Nov 2008 15:47:24 +0000 (15:47 +0000)
zypp/media/MediaCurl.cc

index 665a2a841ce6383b6987ab554f49d3b066181ee2..d39b9e37429305ee0a80cafb60fd53ba43180946 100644 (file)
@@ -1444,7 +1444,8 @@ void MediaCurl::doGetFileCopy( const Pathname & filename , const Pathname & targ
     if (infoRet == CURLE_OK)
     {
       DBG << "HTTP response: " + str::numstring(httpReturnCode);
-      if ( httpReturnCode == 304 ) // not modified
+      if ( httpReturnCode == 304
+           || ( httpReturnCode == 213 && _url.getScheme() == "ftp" ) ) // not modified
       {
         DBG << " Not modified.";
         modified = false;