Hi,
 Drakupdatetxt is quite functional. The next step will be to install the
RPMS (which is quite easy, and probably I'll finish up by the end of
next week or the week after next week :-)

Info: http://www.cyest.org/drakupdatetxt/ 
ChangeLog: http://www.cyest.org/drakupdatetxt/ChangeLog
Download: http://www.cyest.org/downloads/drakupdatetxt.tar.bz2

You might want to read the source code to see what I'm doing.
Now you can start sending me patches :-)

Oh, btw, I also modified the VersionCompare from Mandrakupdate for
drakupdatetxt:

int VersionCompare(string *NewVersion, string *OldVersion)
{
  int x, y;
  int return_value;
  // version and release
  string *new_ver, *old_ver, *new_rel, *old_rel;
  
  x = NewVersion->rfind('-');
  y = OldVersion->rfind('-');
  
  new_ver = new string(NewVersion->substr(0,x));
  new_rel = new string(NewVersion->substr(x+1,NewVersion->length()));

  old_ver = new string(OldVersion->substr(0,y));
  old_rel = new string(OldVersion->substr(y+1,OldVersion->length()));
 
  return_value = rpmvercmp(old_ver->c_str(), new_ver->c_str());
  if (return_value <= 0)
     return_value = rpmvercmp(old_rel->c_str(), new_rel->c_str());
  delete new_ver;
  delete new_rel;
  delete old_ver;
  delete old_rel;
  
  return return_value;
}

-- 
Prana <[EMAIL PROTECTED]>
http://www.cyest.org
My GnuPG Key ID: 0x33343FD3 (2000-07-21)
Key fingerprint = F1FB 1F76 8866 0F40 A801  D9DA 6BED 6641 3334 3FD3
http://blackhole.pca.dfn.de:11371/pks/lookup?op=get&search=0x33343FD3

Reply via email to