소스 검색

fix arguments for MarkInstall so packages are really marked as automatic

David Kalnischkies 15 년 전
부모
커밋
bda94cb843
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 5 5
      apt-pkg/edsp.cc

+ 5 - 5
apt-pkg/edsp.cc

@@ -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;
 }
 									/*}}}*/