Hi, actually this is the function that try to convert debian version in a "compatible" format before debian vs upstream test. If u had any good idea to improve it try to post something over debian qa mailing list:
Cheers, ---------------------------------------------------------------------- function vers_conv($debvers) { preg_match("/(.+:)?([^-]+)(ds|dsfg|debian)/",$debvers,$matches); if (!$matches[3]) { unset($matches); preg_match("/(.+:)?([^-]+)/",$debvers,$matches); } if (substr($matches[2],-1)=='.') $matches[2]=substr($matches[2],0,-1); return $matches[2]; }