27
27
// Include Files /*{{{*/
28
28
#include <config.h>
30
#include <apt-pkg/acquire-item.h>
31
#include <apt-pkg/algorithms.h>
30
32
#include <apt-pkg/aptconfiguration.h>
33
#include <apt-pkg/cachefile.h>
34
#include <apt-pkg/cacheset.h>
35
#include <apt-pkg/clean.h>
36
#include <apt-pkg/cmndline.h>
37
#include <apt-pkg/debmetaindex.h>
38
#include <apt-pkg/depcache.h>
31
39
#include <apt-pkg/error.h>
32
#include <apt-pkg/cmndline.h>
40
#include <apt-pkg/fileutl.h>
41
#include <apt-pkg/indexfile.h>
42
#include <apt-pkg/indexrecords.h>
33
43
#include <apt-pkg/init.h>
34
#include <apt-pkg/depcache.h>
44
#include <apt-pkg/md5.h>
45
#include <apt-pkg/metaindex.h>
46
#include <apt-pkg/pkgrecords.h>
47
#include <apt-pkg/pkgsystem.h>
48
#include <apt-pkg/progress.h>
35
49
#include <apt-pkg/sourcelist.h>
36
#include <apt-pkg/algorithms.h>
37
#include <apt-pkg/acquire-item.h>
50
#include <apt-pkg/srcrecords.h>
38
51
#include <apt-pkg/strutl.h>
39
#include <apt-pkg/fileutl.h>
40
#include <apt-pkg/clean.h>
41
#include <apt-pkg/srcrecords.h>
42
52
#include <apt-pkg/version.h>
43
#include <apt-pkg/cachefile.h>
44
#include <apt-pkg/cacheset.h>
45
#include <apt-pkg/sptr.h>
46
#include <apt-pkg/md5.h>
47
#include <apt-pkg/versionmatch.h>
48
#include <apt-pkg/progress.h>
49
#include <apt-pkg/pkgsystem.h>
50
#include <apt-pkg/pkgrecords.h>
51
#include <apt-pkg/indexfile.h>
53
#include <apt-pkg/acquire.h>
54
#include <apt-pkg/configuration.h>
55
#include <apt-pkg/macros.h>
56
#include <apt-pkg/pkgcache.h>
57
#include <apt-pkg/cacheiterators.h>
52
58
#include <apt-pkg/upgrade.h>
53
#include <apt-pkg/metaindex.h>
54
#include <apt-pkg/indexrecords.h>
60
#include <apt-private/acqprogress.h>
61
#include <apt-private/private-cacheset.h>
62
#include <apt-private/private-cachefile.h>
63
#include <apt-private/private-cmndline.h>
56
64
#include <apt-private/private-download.h>
57
65
#include <apt-private/private-install.h>
66
#include <apt-private/private-main.h>
67
#include <apt-private/private-moo.h>
68
#include <apt-private/private-output.h>
69
#include <apt-private/private-update.h>
58
70
#include <apt-private/private-upgrade.h>
59
#include <apt-private/private-output.h>
60
#include <apt-private/private-cacheset.h>
61
#include <apt-private/private-update.h>
62
#include <apt-private/private-cmndline.h>
63
#include <apt-private/private-moo.h>
64
71
#include <apt-private/private-utils.h>
66
#include <apt-pkg/debmetaindex.h>
68
#include <apt-private/acqprogress.h>
77
79
#include <sys/ioctl.h>
78
80
#include <sys/stat.h>
79
81
#include <sys/statfs.h>
80
82
#include <sys/statvfs.h>
82
84
#include <unistd.h>
88
#include <apt-private/private-output.h>
89
#include <apt-private/private-main.h>
91
92
#include <apti18n.h>
97
98
// ---------------------------------------------------------------------
98
99
/* This used to be inlined in DoInstall, but with the advent of regex package
99
100
name matching it was split out.. */
100
bool TryToInstallBuildDep(pkgCache::PkgIterator Pkg,pkgCacheFile &Cache,
101
static bool TryToInstallBuildDep(pkgCache::PkgIterator Pkg,pkgCacheFile &Cache,
101
102
pkgProblemResolver &Fix,bool Remove,bool BrokenFix,
102
103
bool AllowFail = true)
970
963
string buildopts = _config->Find("APT::Get::Host-Architecture");
971
964
if (buildopts.empty() == false)
972
965
buildopts = "-a" + buildopts + " ";
967
// get all active build profiles
968
std::string const profiles = APT::Configuration::getBuildProfilesString();
969
if (profiles.empty() == false)
970
buildopts.append(" -P").append(profiles).append(" ");
973
972
buildopts.append(_config->Find("DPkg::Build-Options","-b -uc"));
975
974
// Call dpkg-buildpackage
1457
1455
// DownloadChangelog - Download the changelog /*{{{*/
1458
1456
// ---------------------------------------------------------------------
1459
bool DownloadChangelog(CacheFile &CacheFile, pkgAcquire &Fetcher,
1457
static bool DownloadChangelog(CacheFile &CacheFile, pkgAcquire &Fetcher,
1460
1458
pkgCache::VerIterator Ver, string targetfile)
1461
1459
/* Download a changelog file for the given package version to
1462
1460
* targetfile. This will first try the server from Apt::Changelogs::Server