Installed packages will be blessed.

For now, everything is considered blessed, because we are not yet using installers everywhere.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@912 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-05-31 18:33:23 +00:00
parent 282ac72502
commit 50fe805657
5 changed files with 47 additions and 7 deletions
+4 -4
View File
@@ -176,9 +176,9 @@ PackagesWindow::PackagesWindow(Window* parent, const InstallerP& installer)
// add installer
merge(installable_packages, new_intrusive1<DownloadableInstaller>(installer));
// mark all packages in the installer for installation
FOR_EACH(p, installable_packages) {
if (p->installer) {
set_package_action(installable_packages, p, PACKAGE_INSTALL | where);
FOR_EACH(ip, installable_packages) {
if (ip->can(PACKAGE_INSTALL)) {
set_package_action(installable_packages, ip, PACKAGE_INSTALL | where);
}
}
// update window
@@ -271,7 +271,7 @@ void PackagesWindow::onOk(wxCommandEvent& ev) {
if ((ip->action & PACKAGE_INSTALL) && ip->installer && !ip->installer->installer) ++to_download;
if (ip->action & PACKAGE_REMOVE) {
to_remove++;
if (ip->status & PACKAGE_MODIFIED) with_modifications++;
if ((ip->status & PACKAGE_MODIFIED) == PACKAGE_MODIFIED) with_modifications++;
}
}
// Warn about removing