array( "name" => "arch", "title" => "CPU architecture", "label" => "Arch", "table" => "architectures", "column" => "`architectures`.`name`", "extra_condition" => "", "values" => array() ), "repo" => array( "name" => "repo", "title" => "respository", "label" => "Repository", "table" => "repositories", "column" => "CONCAT(`architectures`.`name`,\"/\",`repositories`.`name`)", "extra_condition" => mysql_join_repositories_architectures() . " WHERE `repositories`.`is_on_master_mirror`", "values" => array() ) ); foreach ( $multi_select_search_criteria as $criterium => $content ) { $result = mysql_run_query( "SELECT " . $content["column"] . " AS `name` FROM `" . $content["table"] . "`" . $content["extra_condition"] . " ORDER BY `name`" ); while ($row = $result -> fetch_assoc()) $multi_select_search_criteria[$criterium]["values"][] = $row["name"]; } $float_columns = array( "has_issues", "is_to_be_deleted" ); $filter = " WHERE 1"; foreach ($multi_select_search_criteria as $criterium) if (isset($_GET[$criterium["name"]])) { $filter .= " AND " . $criterium["column"] . " IN ("; foreach ($criterium["values"] as $value) if (strpos("&" . urldecode($_SERVER["QUERY_STRING"]) . "&", "&" . $criterium["name"] . "=" . $value . "&") !== false) $filter .= "\"" . $value . "\","; $filter .= "\"\")"; } $single_select_search_criteria = array( "bugs" => array( "name" => "bugs", "label" => "Bugs", "title" => "bug-tracker status", "options" => array( "All" => "1", "Bugs" => "`binary_packages`.`has_issues`", "No Bugs" => "NOT `binary_packages`.`has_issues`" ) ), "del" => array( "name" => "del", "label" => "To Be Deleted", "title" => "to-be-deleted status", "options" => array( "All" => "1", "To Be Deleted" => "`binary_packages_in_repositories`.`is_to_be_deleted`", "Not To Be Deleted" => "NOT `binary_packages_in_repositories`.`is_to_be_deleted`" ) ), "uses_upstream" => array( "name" => "uses_upstream", "label" => "Upstream", "title" => "wether upstream source exists", "options" => array( "All" => "1", "Uses Upstream" => "`package_sources`.`uses_upstream`", "Does Not Use Upstream" => "NOT `package_sources`.`uses_upstream`" ) ), "uses_modification" => array( "name" => "uses_modification", "label" => "Modification", "title" => "wether modification exists", "options" => array( "All" => "1", "Uses Modification" => "`package_sources`.`uses_modification`", "Does Not Use Modification" => "NOT `package_sources`.`uses_modification`" ) ) ); foreach ($single_select_search_criteria as $criterium) if (isset($_GET[$criterium["name"]]) && isset($criterium["options"][$_GET[$criterium["name"]]])) $filter .= " AND " . $criterium["options"][$_GET[$criterium["name"]]]; if (array_key_exists("q", $_GET)) { $extra_joins = ""; $exact_filter = " AND `binary_packages`.`pkgname` = from_base64(\"".base64_encode($_GET["q"])."\")"; $fuzzy_filter = " AND `binary_packages`.`pkgname` LIKE from_base64(\"".base64_encode("%".$_GET["q"]."%")."\")"; } elseif (array_key_exists("g", $_GET) && array_key_exists("ra", $_GET)) { $extra_joins = mysql_join_binary_packages_install_target_providers() . mysql_join_install_target_providers_install_targets(); $fuzzy_filter = " AND `install_targets`.`name`=from_base64(\"" . base64_encode($_GET["g"]) . "\")" . " AND `r_a`.`name`=from_base64(\"" . base64_encode($_GET["ra"]) . "\")"; $exact_filter = " AND 0"; } else { $extra_joins = ""; $exact_filter = " AND 0"; $fuzzy_filter = ""; } $exact_matches = query_package_listing( $extra_joins . $filter . $exact_filter . " ORDER BY " . "`binary_packages`.`pkgname`,`repositories`.`stability`,`repositories`.`name`,`architectures`.`name`", $float_columns, false ); $sorts = array( "arch" => array( "title" => "architecture", "label" => "Arch", "mysql" => "`architectures`.`name`" ), "repo" => array( "title" => "repository", "label" => "Repo", "mysql" => "CONCAT(`r_a`.`name`,\"/\",`repositories`.`name`)" ), "pkgname" => array( "title" => "package name", "label" => "Name", "mysql" => "`binary_packages`.`pkgname`" ), "pkgver" => array( "title" => "package version", "label" => "Version", "mysql" => mysql_query_package_version("binary_packages") ), "bugs" => array( "title" => "bug status", "label" => "Bugs", "mysql" => "NOT `binary_packages`.`has_issues`" ), "build_date" => array( "title" => "build date", "label" => "Build Date", "mysql" => "IFNULL(`build_assignments`.`return_date`,\"00-00-0000 00:00:00\")" ), "move_date" => array( "title" => "last update", "label" => "Last Updated", "mysql" => "IFNULL(`binary_packages_in_repositories`.`last_moved`,\"00-00-0000 00:00:00\")" ), "del" => array( "title" => "to be deleted", "label" => "Delete", "mysql" => "`binary_packages_in_repositories`.`is_to_be_deleted`" ) ); $q_f = $extra_joins . $filter . $fuzzy_filter . " ORDER BY "; if (array_key_exists("sort", $_GET)) { if (isset($sorts[$_GET["sort"]]["mysql"])) $q_f .= $sorts[$_GET["sort"]]["mysql"] . ","; elseif (isset($sorts[substr($_GET["sort"],1)]["mysql"])) $q_f .= $sorts[substr($_GET["sort"],1)]["mysql"] . " DESC,"; } $q_f .= "`binary_packages`.`pkgname`,`repositories`.`stability`,`repositories`.`name`,`architectures`.`name`"; $num_results = query_package_listing( $q_f, array(), true ); $query = " FROM `binary_packages`" . mysql_join_binary_packages_architectures() . mysql_join_binary_packages_binary_packages_in_repositories() . mysql_join_binary_packages_in_repositories_repositories() . " AND `repositories`.`is_on_master_mirror`" . mysql_join_repositories_architectures("","r_a") . mysql_join_binary_packages_build_assignments() . mysql_join_build_assignments_package_sources() . $extra_joins . $filter . $fuzzy_filter . " ORDER BY "; if (array_key_exists("sort", $_GET)) { if (isset($sorts[$_GET["sort"]]["mysql"])) $query .= $sorts[$_GET["sort"]]["mysql"] . ","; elseif (isset($sorts[substr($_GET["sort"],1)]["mysql"])) $query .= $sorts[substr($_GET["sort"],1)]["mysql"] . " DESC,"; } $query .= "`binary_packages`.`pkgname`,`repositories`.`stability`,`repositories`.`name`,`architectures`.`name`"; $pages = max(ceil($num_results / 100), 1); if (array_key_exists("page", $_GET)) $page = max(min($_GET["page"]+0, $pages),1); else $page = 1; $fuzzy_matches = query_package_listing( $q_f . " LIMIT " . (($page-1)*100) . ", 100", $float_columns, false ); function header_and_footer() { global $page, $pages, $num_results; print "
\n"; print " " . $num_results . " matching package"; if ($num_results != 1) print "s"; print " found.\n"; if ($pages != 1) print " Page " . $page . " of " . $pages . ".\n"; print "
\n"; if ($pages != 1) { print "exact match found.
Can't find what you are looking for? Try searching again using different criteria, or try searching the AUR to see if the package can be found there.
You are browsing the Arch Linux 32 package database. From here you can find detailed information about packages located in the 32 bit repositories.