summaryrefslogtreecommitdiff
path: root/apt-pkg/edsp
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-03-31 11:58:24 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-03-31 11:58:24 +0200
commite0a78caad639a3fa8d50edf3374a06805ab86315 (patch)
tree639350795620cbbbf878b4794042ba20fe8b64b9 /apt-pkg/edsp
parent41ceaf02483a826d5797cf0bd61bd7b6013733a8 (diff)
rename the 'universe' to 'scenario' to reflect the naming in the draft
Diffstat (limited to 'apt-pkg/edsp')
-rw-r--r--apt-pkg/edsp/edspindexfile.cc6
-rw-r--r--apt-pkg/edsp/edspindexfile.h2
-rw-r--r--apt-pkg/edsp/edspsystem.cc10
-rw-r--r--apt-pkg/edsp/edspwriter.cc2
-rw-r--r--apt-pkg/edsp/edspwriter.h2
5 files changed, 11 insertions, 11 deletions
diff --git a/apt-pkg/edsp/edspindexfile.cc b/apt-pkg/edsp/edspindexfile.cc
index 366325d0f..f5881e663 100644
--- a/apt-pkg/edsp/edspindexfile.cc
+++ b/apt-pkg/edsp/edspindexfile.cc
@@ -1,7 +1,7 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
/* ######################################################################
- The universe file is designed to work as an intermediate file between
+ The scenario file is designed to work as an intermediate file between
APT and the resolver. Its on propose very similar to a dpkg status file
##################################################################### */
/*}}}*/
@@ -51,7 +51,7 @@ bool edspIndex::Merge(pkgCacheGenerator &Gen,OpProgress *Prog) const
return _error->Errno("fstat","Failed to stat");
CFile->Size = St.st_size;
CFile->mtime = St.st_mtime;
- CFile->Archive = Gen.WriteUniqString("universe");
+ CFile->Archive = Gen.WriteUniqString("edsp::scenario");
if (Gen.MergeList(Parser) == false)
return _error->Error("Problem with MergeList %s",File.c_str());
@@ -67,7 +67,7 @@ class edspIFType: public pkgIndexFile::Type
// we don't have a record parser for this type as the file is not presistent
return NULL;
};
- edspIFType() {Label = "APT universe file";};
+ edspIFType() {Label = "EDSP scenario file";};
};
static edspIFType _apt_Universe;
diff --git a/apt-pkg/edsp/edspindexfile.h b/apt-pkg/edsp/edspindexfile.h
index 4ef7787e7..87c06557c 100644
--- a/apt-pkg/edsp/edspindexfile.h
+++ b/apt-pkg/edsp/edspindexfile.h
@@ -1,7 +1,7 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
/* ######################################################################
- The universe file is designed to work as an intermediate file between
+ The scenario file is designed to work as an intermediate file between
APT and the resolver. Its on propose very similar to a dpkg status file
##################################################################### */
/*}}}*/
diff --git a/apt-pkg/edsp/edspsystem.cc b/apt-pkg/edsp/edspsystem.cc
index c8e417b1d..3a0494e19 100644
--- a/apt-pkg/edsp/edspsystem.cc
+++ b/apt-pkg/edsp/edspsystem.cc
@@ -2,7 +2,7 @@
// Description /*{{{*/
/* ######################################################################
- This system provides the abstraction to use the universe file as the
+ This system provides the abstraction to use the scenario file as the
only source of package information to be able to feed the created file
back to APT for its own consumption (eat your own dogfood).
@@ -86,9 +86,9 @@ bool edspSystem::ArchiveSupported(const char *Type)
// System::Score - Determine if we should use the edsp system /*{{{*/
signed edspSystem::Score(Configuration const &Cnf)
{
- if (Cnf.Find("Dir::State::universe", "") == "stdin")
+ if (Cnf.Find("Dir::State::edsp::scenario", "") == "stdin")
return 1000;
- if (FileExists(Cnf.FindFile("Dir::State::universe","")) == true)
+ if (FileExists(Cnf.FindFile("Dir::State::edsp::scenario","")) == true)
return 1000;
return -1000;
}
@@ -98,10 +98,10 @@ bool edspSystem::AddStatusFiles(vector<pkgIndexFile *> &List)
{
if (StatusFile == 0)
{
- if (_config->Find("Dir::State::universe", "") == "stdin")
+ if (_config->Find("Dir::State::edsp::scenario", "") == "stdin")
StatusFile = new edspIndex("stdin");
else
- StatusFile = new edspIndex(_config->FindFile("Dir::State::universe"));
+ StatusFile = new edspIndex(_config->FindFile("Dir::State::edsp::scenario"));
}
List.push_back(StatusFile);
return true;
diff --git a/apt-pkg/edsp/edspwriter.cc b/apt-pkg/edsp/edspwriter.cc
index ea46065c2..5c741c45d 100644
--- a/apt-pkg/edsp/edspwriter.cc
+++ b/apt-pkg/edsp/edspwriter.cc
@@ -18,7 +18,7 @@
/*}}}*/
// edspWriter::WriteUniverse - to the given file descriptor /*{{{*/
-bool edspWriter::WriteUniverse(pkgDepCache &Cache, FILE* output)
+bool edspWriter::WriteScenario(pkgDepCache &Cache, FILE* output)
{
// we could use pkgCache::DepType and ::Priority, but these would be lokalized stringsā€¦
const char * const PrioMap[] = {0, "important", "required", "standard",
diff --git a/apt-pkg/edsp/edspwriter.h b/apt-pkg/edsp/edspwriter.h
index c42dfd398..2b417956e 100644
--- a/apt-pkg/edsp/edspwriter.h
+++ b/apt-pkg/edsp/edspwriter.h
@@ -12,7 +12,7 @@
class edspWriter /*{{{*/
{
public:
- bool static WriteUniverse(pkgDepCache &Cache, FILE* output);
+ bool static WriteScenario(pkgDepCache &Cache, FILE* output);
bool static WriteRequest(pkgDepCache &Cache, FILE* output);
bool static WriteSolution(pkgDepCache &Cache, FILE* output);
};