Author: lslezak
Date: Thu Mar 8 17:16:32 2012
New Revision: 67609
URL: http://svn.opensuse.org/viewcvs/yast?rev=67609&view=rev
Log:
- do not downgrade release packages, avoid migrating again
(bnc#751147)
- 2.17.32
Modified:
branches/SuSE-Code-11-SP2-Branch/wagon/VERSION
branches/SuSE-Code-11-SP2-Branch/wagon/package/yast2-wagon.changes
branches/SuSE-Code-11-SP2-Branch/wagon/src/clients/wagon_migration_products.ycp
branches/SuSE-Code-11-SP2-Branch/wagon/src/clients/wagon_selfupdate.ycp
branches/SuSE-Code-11-SP2-Branch/wagon/yast2-wagon.spec.in
Modified: branches/SuSE-Code-11-SP2-Branch/wagon/VERSION
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/wagon/VERSION?rev=67609&r1=67608&r2=67609&view=diff
==============================================================================
--- branches/SuSE-Code-11-SP2-Branch/wagon/VERSION (original)
+++ branches/SuSE-Code-11-SP2-Branch/wagon/VERSION Thu Mar 8 17:16:32 2012
@@ -1 +1 @@
-2.17.31
+2.17.32
Modified: branches/SuSE-Code-11-SP2-Branch/wagon/package/yast2-wagon.changes
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/wagon/package/yast2-wagon.changes?rev=67609&r1=67608&r2=67609&view=diff
==============================================================================
--- branches/SuSE-Code-11-SP2-Branch/wagon/package/yast2-wagon.changes (original)
+++ branches/SuSE-Code-11-SP2-Branch/wagon/package/yast2-wagon.changes Thu Mar 8 17:16:32 2012
@@ -1,4 +1,11 @@
-------------------------------------------------------------------
+Thu Mar 8 12:11:52 UTC 2012 - lslezak@suse.cz
+
+- do not downgrade release packages, avoid migrating again
+ (bnc#751147)
+- 2.17.32
+
+-------------------------------------------------------------------
Wed Mar 7 08:14:29 UTC 2012 - lslezak@suse.cz
- ensure that the migration products are removed (bnc#750746)
Modified: branches/SuSE-Code-11-SP2-Branch/wagon/src/clients/wagon_migration_products.ycp
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/wagon/src/clients/wagon_migration_products.ycp?rev=67609&r1=67608&r2=67609&view=diff
==============================================================================
--- branches/SuSE-Code-11-SP2-Branch/wagon/src/clients/wagon_migration_products.ycp (original)
+++ branches/SuSE-Code-11-SP2-Branch/wagon/src/clients/wagon_migration_products.ycp Thu Mar 8 17:16:32 2012
@@ -57,16 +57,12 @@
return;
}
- // Product version is the same but release can be different
- // product map doesn't contain the release string. To be sure, product will be reinstalled
y2milestone ("Upgrading product %1 version %2", product_name, product_version);
- // The version is the same, release can be different
- if (Pkg::ResolvableInstall (product_name, `product) != true) {
- Report::Error (sformat(_("Cannot update installed product %1."), product_name));
- return;
- }
- affected_products = affected_products + 1;
+ if (Pkg::ResolvableUpdate(product_name, `product))
+ {
+ affected_products = affected_products + 1;
+ }
});
return affected_products;
Modified: branches/SuSE-Code-11-SP2-Branch/wagon/src/clients/wagon_selfupdate.ycp
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/wagon/src/clients/wagon_selfupdate.ycp?rev=67609&r1=67608&r2=67609&view=diff
==============================================================================
--- branches/SuSE-Code-11-SP2-Branch/wagon/src/clients/wagon_selfupdate.ycp (original)
+++ branches/SuSE-Code-11-SP2-Branch/wagon/src/clients/wagon_selfupdate.ycp Thu Mar 8 17:16:32 2012
@@ -50,88 +50,19 @@
integer pkgs_affected = 0;
- map