summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2007-09-14 16:50:07 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2007-09-14 16:50:07 +0200
commit04d0fa8803bcd70437cc1033f333d0992b28a329 (patch)
tree1abd2ca153e938968921cbc081567ba953cecb03 /cmdline
parent5c2682d0effa4b0eef1f18b10757c547e2ba6225 (diff)
parent085bedacb04be4f805b0fb9d3b2a611d5d475d62 (diff)
* cmdline/apt-get.cc:
- do not change the auto-installed information if a package is reinstalled (LP: #139448) * cmdline/apt-get.cc: - do not change the auto-installed information if a package is reinstalled
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-get.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index 9389e7010..2cd2516bd 100644
--- a/cmdline/apt-get.cc
+++ b/cmdline/apt-get.cc
@@ -1708,7 +1708,8 @@ bool DoInstall(CommandLine &CmdL)
// where foo is marked automatic
if(!Remove &&
Cache[Pkg].Install() == false &&
- (Cache[Pkg].Flags & pkgCache::Flag::Auto))
+ (Cache[Pkg].Flags & pkgCache::Flag::Auto) &&
+ _config->FindB("APT::Get::ReInstall",false) == false)
{
ioprintf(c1out,_("%s set to manual installed.\n"),
Pkg.Name());
@@ -2498,6 +2499,7 @@ bool DoBuildDep(CommandLine &CmdL)
break;
}
if (CV.end() == true)
+ {
if (hasAlternatives)
{
continue;
@@ -2510,6 +2512,7 @@ bool DoBuildDep(CommandLine &CmdL)
Last->BuildDepType((*D).Type),Src.c_str(),
(*D).Package.c_str());
}
+ }
}
else
{