summaryrefslogtreecommitdiff
path: root/apt-pkg/edsp.h
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-04-25 15:59:19 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-04-25 15:59:19 +0200
commitd4f626ff09383873c7b1ae42b744293c940c9c2c (patch)
tree540edc3cd471508c627a448a87a6fc404c62480b /apt-pkg/edsp.h
parent2a33cb16d6be42b253e9a4169e2c725e17cf7c1a (diff)
downloadapt-d4f626ff09383873c7b1ae42b744293c940c9c2c.tar.gz
reorganize WriteScenario to add a WriteLimitedScenario in which a scenario
can be limited to a subset of packages with only relevant dependencies
Diffstat (limited to 'apt-pkg/edsp.h')
-rw-r--r--apt-pkg/edsp.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/apt-pkg/edsp.h b/apt-pkg/edsp.h
index 31f8891f3..db4f06a7c 100644
--- a/apt-pkg/edsp.h
+++ b/apt-pkg/edsp.h
@@ -8,20 +8,37 @@
#define PKGLIB_EDSP_H
#include <apt-pkg/depcache.h>
+#include <apt-pkg/cacheset.h>
#include <string>
class EDSP /*{{{*/
{
+ // we could use pkgCache::DepType and ::Priority, but these would be localized stringsā€¦
+ static const char * const PrioMap[];
+ static const char * const DepMap[];
+
bool static ReadLine(int const input, std::string &line);
bool static StringToBool(char const *answer, bool const defValue);
+ void static WriteScenarioVersion(pkgDepCache &Cache, FILE* output,
+ pkgCache::PkgIterator const &Pkg,
+ pkgCache::VerIterator const &Ver);
+ void static WriteScenarioDependency(pkgDepCache &Cache, FILE* output,
+ pkgCache::PkgIterator const &Pkg,
+ pkgCache::VerIterator const &Ver);
+ void static WriteScenarioLimitedDependency(pkgDepCache &Cache, FILE* output,
+ pkgCache::PkgIterator const &Pkg,
+ pkgCache::VerIterator const &Ver,
+ APT::PackageSet const &pkgset);
public:
bool static WriteRequest(pkgDepCache &Cache, FILE* output,
bool const upgrade = false,
bool const distUpgrade = false,
bool const autoRemove = false);
bool static WriteScenario(pkgDepCache &Cache, FILE* output);
+ bool static WriteLimitedScenario(pkgDepCache &Cache, FILE* output,
+ APT::PackageSet const &pkgset);
bool static ReadResponse(int const input, pkgDepCache &Cache);
// ReadScenario is provided by the listparser infrastructure