protocols, therefore if we want to use find to search for
a dir entry in a list, we need to relax operator == so it
does not take in count type if it is not known.
- repository license methods added to RepoManager (bnc #372386)
- revision 11377
+-------------------------------------------------------------------
+Thu Oct 16 16:26:01 CEST 2008 - dmacvicar@suse.de
+
+- don't take into account stat information when looking
+ for remote SHA1SUMS (part of bnc#409927)
+
-------------------------------------------------------------------
Wed Oct 15 18:01:48 CEST 2008 - jkupec@suse.cz
// METHOD NAME : readdir
// METHOD TYPE : int
//
+
+ bool DirEntry::operator==( const DirEntry &rhs ) const
+ {
+ // if one of the types is not known, use the name only
+ if ( type == FT_NOT_AVAIL || rhs.type == FT_NOT_AVAIL )
+ return ( name == rhs.name );
+ return ((name == rhs.name ) && (type == rhs.type));
+ }
+
int readdir( DirContent & retlist, const Pathname & path,
bool dots, PathInfo::Mode statmode )
{
, type( type_r )
{}
- bool operator==( const DirEntry &rhs ) const
- { return ((name == rhs.name ) && (type == rhs.type)); }
+ bool operator==( const DirEntry &rhs ) const;
};
/** Returned by readdir. */