• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/src/router/busybox-1.x/archival/

Lines Matching defs:package

19  *  - when installing a package the status: field is placed at the end of the
20 * section, rather than just after the package: field.
41 /* NAME_HASH_PRIME, Stores package names and versions,
52 * e.g. The same package may have different versions in the status file
74 unsigned package:16; /* was:14 */ /* has to fit PACKAGE_HASH_PRIME */
110 unsigned package:16; /* was:14 */
163 if (strcmp(key, name_hashtable[package_hashtable[status_hashtable[probe_address]->package]->name]) == 0) {
483 * Gets the next package field from package_buffer, seperated into the field name
745 status_node->package = package_num;
746 status_num = search_status_hashtable(name_hashtable[package_hashtable[status_node->package]->name]);
805 /* Find this package in the status hashtable */
815 /* We need to add the control file from the package */
818 if (strcmp(package_name, name_hashtable[package_hashtable[deb_file[i]->package]->name]) == 0) {
878 /* If the package from the status file wasnt handle above, do it now*/
890 status_num = search_status_hashtable(name_hashtable[package_hashtable[deb_file[i]->package]->name]);
916 /* This function returns TRUE if the given package can satisfy a
919 * A pre-depends is satisfied only if a package is already installed,
920 * which a regular depends can be satisfied by a package which we want
923 static int package_satisfies_dependency(int package, int depend_type)
925 int status_num = search_status_hashtable(name_hashtable[package_hashtable[package]->name]);
927 /* status could be unknown if package is a pure virtual
954 /* Create array of package numbers to check against
955 * installed package for conflicts*/
957 const unsigned package_num = deb_file[i]->package;
969 /* create a new package */
986 const common_node_t *package_node = package_hashtable[deb_file[i]->package];
1008 result = test_version(package_hashtable[deb_file[i]->package]->version,
1014 bb_error_msg_and_die("package %s conflicts with %s",
1031 /* If the package node does not exist then this
1032 * package is a virtual one. In which case there are
1039 /* If there is no status then this package is a
1045 /* If we don't want this package installed then we may
1086 bb_error_msg_and_die("fatal error, package dependencies corrupt: %d != %d - 1",
1092 if (result) { /* check for other package which provide what we are looking for */
1097 puts("Have a provider but no package information for it");
1112 "package %s %sdepends on %s, "
1118 "package %s %sdepends on %s, which %s\n",
1125 /* we've found a package which
1225 /* Create a list of all /var/lib/dpkg/info/<package> files */
1258 /* go through status hash, dereference package hash and finally strings */
1262 const char *name_str; /* package name */
1269 name_str = name_hashtable[package_hashtable[status_hashtable[i]->package]->name];
1270 vers_str = name_hashtable[package_hashtable[status_hashtable[i]->package]->version];
1318 /* Create a list of files in /var/lib/dpkg/info/<package>.* to keep */
1323 /* Create a list of all /var/lib/dpkg/info/<package> files */
1330 /* rename <package>.conffile to <package>.list */
1333 /* Change package status */
1363 /* Create a list of all /var/lib/dpkg/info/<package> files */
1374 /* Change package status */
1455 const char *package_name = name_hashtable[package_hashtable[deb_file->package]->name];
1457 const unsigned status_package_num = status_hashtable[status_num]->package;
1476 /* Extract control.tar.gz to /var/lib/dpkg/info/<package>.filename */
1528 const char *package_name = name_hashtable[package_hashtable[deb_file->package]->name];
1529 const char *package_version = name_hashtable[package_hashtable[deb_file->package]->version];
1622 deb_file[deb_count]->package = (unsigned) package_num;
1624 /* Add the package to the status hashtable */
1626 /* Try and find a currently installed version of this package */
1627 status_num = search_status_hashtable(name_hashtable[package_hashtable[deb_file[deb_count]->package]->name]);
1633 status_node->package = deb_file[deb_count]->package;
1634 /* reinstreq isnt changed to "ok" until the package control info
1644 /* -C/-p/-r: require package name */
1645 deb_file[deb_count]->package = search_package_hashtable(
1648 if (package_hashtable[deb_file[deb_count]->package] == NULL) {
1649 bb_error_msg_and_die("package %s is uninstalled or unknown", argv[0]);
1651 package_num = deb_file[deb_count]->package;
1655 /* check package status is "installed" */
1664 /* if package status is "conf-files" then its ok */
1675 bb_error_msg_and_die("no package files specified");
1689 remove_package(deb_file[i]->package, 1);
1692 purge_package(deb_file[i]->package);
1699 /* package is configured in second pass below */