Lines Matching defs:package

11 #include <package/manager/PackageManager.h>
17 #include <package/CommitTransactionResult.h>
18 #include <package/DownloadFileRequest.h>
19 #include <package/PackageRoster.h>
20 #include <package/RefreshRepositoryRequest.h>
21 #include <package/RepositoryCache.h>
22 #include <package/solver/SolverPackage.h>
23 #include <package/solver/SolverPackageSpecifier.h>
24 #include <package/solver/SolverPackageSpecifierList.h>
25 #include <package/solver/SolverProblem.h>
26 #include <package/solver/SolverProblemSolution.h>
27 #include <package/solver/SolverResult.h>
30 #include <package/ActivationTransaction.h>
31 #include <package/DaemonClient.h>
32 #include <package/manager/RepositoryBuilder.h>
33 #include <package/ValidateChecksumJob.h>
114 // prevents the solver from showing conflicts when a package in a more
115 // specific installation location overrides a package in a more general
222 // determine the inverse base package closure for the found packages
230 BSolverPackage* package = installationRepository.PackageAt(i);
231 if (foundPackages.HasItem(package))
234 if (_FindBasePackage(foundPackages, package->Info()) >= 0) {
235 foundPackages.AddItem(package);
242 for (int32 i = 0; BSolverPackage* package = foundPackages.ItemAt(i); i++)
243 installationRepository.DisablePackage(package);
271 // be more correct to compute the inverse base package closure for the
274 // version (ATM). If that base package still exist in a more general
275 // location (the only reason why the package requiring the base package
351 DIE(error, "Failed to compute package dependencies");
450 BSolverPackage* package = element->Package();
456 = dynamic_cast<InstalledRepository*>(package->Repository())
460 if (!packageList.AddItem(package))
466 if (!packagesToDeactivate.AddItem(package))
474 BSolverPackage* package = packagesToActivate.ItemAt(i);
475 int32 index = _FindBasePackage(potentialBasePackages, package->Info());
551 for (int32 i = 0; BSolverPackage* package = packagesToActivate.ItemAt(i);
553 // get package URL and target entry
555 BString fileName(package->Info().FileName());
562 DIE(error, "Failed to create package entry");
565 = dynamic_cast<RemoteRepository*>(package->Repository());
606 // download the package (this will resume the download if the
614 package->Info().Checksum());
630 DIE(error, "Failed to download package %s",
631 package->Info().Name().String());
633 } else if (package->Repository() != &installationRepository) {
634 // clone the existing package
636 = dynamic_cast<LocalRepository*>(package->Repository());
639 package->Repository()->Name().String());
641 _ClonePackageFile(localRepository, package, entry);
644 // add package to transaction
651 for (int32 i = 0; BSolverPackage* package = packagesToDeactivate.ItemAt(i);
653 // add package to transaction
655 package->Info().FileName())) {
697 BSolverPackage* package, const BEntry& entry)
701 repository->GetPackagePath(package, sourcePath);
706 DIE(error, "Failed to entry path of package file to install \"%s\"",
707 package->Info().FileName().String());
710 // Copy the package. Ideally we would just hard-link it, but BFS doesn't
714 DIE(error, "Failed to copy package file \"%s\"", sourcePath.Path());
725 // find the requirement matching the base package
738 "doesn't have a matching requires for its base package \"%s\""),
744 // find the first package matching the base package requires
747 BSolverPackage* package = packages.ItemAt(i);
748 if (package->Name() == basePackage->Name()
749 && package->Info().Matches(*basePackage)) {
827 BSolverPackage* package = _AddLocalPackage(searchString);
828 if (!specifierList.AppendSpecifier(package))
947 BSolverPackage* package;
948 BRepositoryBuilder(*this).AddPackage(fileName, &package);
950 fPackagePaths[package] = fileName;
952 return package;
957 BPackageManager::MiscLocalRepository::GetPackagePath(BSolverPackage* package,
960 PackagePathMap::const_iterator it = fPackagePaths.find(package);
963 package->VersionedName().String());
968 DIE(error, "Failed to init package path %s", it->second.c_str());
990 BPackageManager::InstalledRepository::GetPackagePath(BSolverPackage* package,
1006 BString fileName(package->Info().FileName());
1009 DIE(error, "Failed to get path of package file \"%s\" in installation "
1016 BPackageManager::InstalledRepository::DisablePackage(BSolverPackage* package)
1018 if (fDisabledPackages.HasItem(package))
1019 DIE("Package %s already disabled", package->VersionedName().String());
1021 if (package->Repository() != this) {
1023 package->VersionedName().String(), Name().String());
1027 if (!fDisabledPackages.AddItem(package))
1030 RemovePackage(package);
1035 BPackageManager::InstalledRepository::EnablePackage(BSolverPackage* package)
1037 return fDisabledPackages.RemoveItem(package);
1052 for (int32 i = 0; BSolverPackage* package = fPackagesToDeactivate.ItemAt(i);
1054 if (!fDisabledPackages.HasItem(package))
1055 DisablePackage(package);
1059 for (int32 i = 0; BSolverPackage* package = fPackagesToActivate.ItemAt(i);
1061 status_t error = AddPackage(package->Info());
1063 DIE(error, "Failed to add package %s to %s repository",
1064 package->Name().String(), Name().String());