]> git.saurik.com Git - apt.git/commitdiff
rename the 'universe' to 'scenario' to reflect the naming in the draft
authorDavid Kalnischkies <kalnischkies@gmail.com>
Thu, 31 Mar 2011 09:58:24 +0000 (11:58 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Thu, 31 Mar 2011 09:58:24 +0000 (11:58 +0200)
apt-pkg/algorithms.cc
apt-pkg/edsp/edspindexfile.cc
apt-pkg/edsp/edspindexfile.h
apt-pkg/edsp/edspsystem.cc
apt-pkg/edsp/edspwriter.cc
apt-pkg/edsp/edspwriter.h

index 35752a5c43f584ebf57b20bdc7b64cbb02870bf9..b55ff2897ad9df37c42f06bd21456228fa6c4985 100644 (file)
@@ -742,8 +742,8 @@ bool pkgProblemResolver::Resolve(bool BrokenFix)
    std::string const solver = _config->Find("APT::Solver::Name", "internal");
    if (solver != "internal")
    {
-      FILE* output = fopen("/tmp/universe.log", "w");
-      edspWriter::WriteUniverse(Cache, output);
+      FILE* output = fopen("/tmp/scenario.log", "w");
+      edspWriter::WriteScenario(Cache, output);
       fclose(output);
       output = fopen("/tmp/request.log", "w");
       edspWriter::WriteRequest(Cache, output);
index 366325d0fd334d587d58214cc46a9665f5d70ea5..f5881e66362a9b95b0363f232642fa13bd74cd69 100644 (file)
@@ -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;
 
index 4ef7787e7129bf2dd1d6f55137f8b4f4b051b084..87c06557cb5d13d10a925666dfba15f1ecfac03b 100644 (file)
@@ -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
    ##################################################################### */
                                                                        /*}}}*/
index c8e417b1d9e7f7079ebcda9aab138a0d9daa12d7..3a0494e19257b95b92ff686d4d8659da97bb62dc 100644 (file)
@@ -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;
index ea46065c298dc4ec8f73ad404350a0391925b777..5c741c45d59a0b4a2c847948e9296a7a7fee23e1 100644 (file)
@@ -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",
index c42dfd398d80655534d699e6bd3688868fe48563..2b417956ed460c398c2034b1593c13d46bddb6fc 100644 (file)
@@ -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);
 };