Beispiel #1
0
 public static function getInfo($filename, $format = null)
 {
     $ftype = RepositoryFS::getFileType($filename);
     $res = null;
     switch ($ftype) {
         case "rpm":
             self::getRpmInfo($filename, $format);
             break;
         case "deb":
             self::getDebInfo($filename, $format);
             break;
         case "gzip":
             self::getGzipInfo($filename, $format);
             break;
         default:
             break;
     }
     return $res;
 }