]> git.saurik.com Git - apt.git/commitdiff
fix arguments for MarkInstall so packages are really marked as automatic
authorDavid Kalnischkies <kalnischkies@gmail.com>
Tue, 3 May 2011 17:59:45 +0000 (19:59 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Tue, 3 May 2011 17:59:45 +0000 (19:59 +0200)
apt-pkg/edsp.cc

index ce9ad250cf7eb7f0b6b2f6c4fc30f53f2f13d68a..5b59373bd0eee4a472695a4df67abe725e62ba3a 100644 (file)
@@ -273,7 +273,7 @@ bool EDSP::ReadResponse(int const input, pkgDepCache &Cache) {
                pkgCache::VerIterator Ver(Cache.GetCache(), Cache.GetCache().VerP + VerIdx[id]);
                Cache.SetCandidateVersion(Ver);
                if (type == "Install")
-                       Cache.MarkInstall(Ver.ParentPkg(), false, false);
+                       Cache.MarkInstall(Ver.ParentPkg(), false, 0, false);
                else if (type == "Remove")
                        Cache.MarkDelete(Ver.ParentPkg(), false);
                else if (type == "Autoremove") {
@@ -450,10 +450,10 @@ bool EDSP::WriteSolution(pkgDepCache &Cache, FILE* output)
                                                                        /*}}}*/
 // EDSP::WriteProgess - pulse to the given file descriptor             /*{{{*/
 bool EDSP::WriteProgress(unsigned short const percent, const char* const message, FILE* output) {
-       fprintf(output, "Progress: %s\n", TimeRFC1123(time(NULL)).c_str());
-       fprintf(output, "Percentage: %d\n", percent);
-       fprintf(output, "Message: %s\n\n", message);
-       fflush(output);
+//     fprintf(output, "Progress: %s\n", TimeRFC1123(time(NULL)).c_str());
+//     fprintf(output, "Percentage: %d\n", percent);
+//     fprintf(output, "Message: %s\n\n", message);
+//     fflush(output);
        return true;
 }
                                                                        /*}}}*/