Lines Matching refs:package_num
776 const unsigned package_num = fill_package_struct(control_buffer); in index_status_file() local
777 if (package_num != -1) { in index_status_file()
788 status_node->package = package_num; in index_status_file()
997 const unsigned package_num = deb_file[i]->package; in check_deps() local
999 conflicts[conflicts_num] = package_num; in check_deps()
1002 for (j = 0; j < package_hashtable[package_num]->num_of_edges; j++) { in check_deps()
1003 if (package_hashtable[package_num]->edge[j]->type == EDGE_PROVIDES) { in check_deps()
1005 package_hashtable[package_num]->edge[j]->name, in check_deps()
1006 package_hashtable[package_num]->edge[j]->version, in check_deps()
1007 package_hashtable[package_num]->edge[j]->operator); in check_deps()
1011 new_node->name = package_hashtable[package_num]->edge[j]->name; in check_deps()
1012 new_node->version = package_hashtable[package_num]->edge[j]->version; in check_deps()
1039 const unsigned package_num = in check_deps() local
1044 if (package_hashtable[package_num] != NULL) { in check_deps()
1045 status_num = search_status_hashtable(name_hashtable[package_hashtable[package_num]->name]); in check_deps()
1098 unsigned package_num; in check_deps() local
1113 …package_num = search_package_hashtable(package_edge->name, package_edge->version, package_edge->op… in check_deps()
1131 if (package_hashtable[package_num] != NULL) in check_deps()
1132 result = !package_satisfies_dependency(package_num, package_edge->type); in check_deps()
1361 static void remove_package(const unsigned package_num, int noisy) in remove_package() argument
1363 const char *package_name = name_hashtable[package_hashtable[package_num]->name]; in remove_package()
1364 const char *package_version = name_hashtable[package_hashtable[package_num]->version]; in remove_package()
1412 static void purge_package(const unsigned package_num) in purge_package() argument
1414 const char *package_name = name_hashtable[package_hashtable[package_num]->name]; in purge_package()
1415 const char *package_version = name_hashtable[package_hashtable[package_num]->version]; in purge_package()
1745 int package_num; in dpkg_main() local
1823 package_num = fill_package_struct(deb_file[deb_count]->control_file); in dpkg_main()
1825 if (package_num == -1) { in dpkg_main()
1830 deb_file[deb_count]->package = (unsigned) package_num; in dpkg_main()
1859 package_num = deb_file[deb_count]->package; in dpkg_main()
1860 status_num = search_status_hashtable(name_hashtable[package_hashtable[package_num]->name]); in dpkg_main()
1868 …bb_error_msg_and_die("%s is already removed", name_hashtable[package_hashtable[package_num]->name]… in dpkg_main()
1874 …bb_error_msg_and_die("%s is already purged", name_hashtable[package_hashtable[package_num]->name]); in dpkg_main()