aboutsummaryrefslogtreecommitdiff
path: root/migrate/migrate.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-04-01 21:50:16 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-04-06 18:42:14 +0300
commitf11d8c32c01ab1ac13268484b9e85732176a47d9 (patch)
tree960473ad9016458dde5f8a092b9715c77888aaac /migrate/migrate.cxx
parentca708a3f172e2f0ffab8638087b3e478de06b996 (diff)
Add support for test-exclude task manifest value
Diffstat (limited to 'migrate/migrate.cxx')
-rw-r--r--migrate/migrate.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/migrate/migrate.cxx b/migrate/migrate.cxx
index 81c4543..e892a39 100644
--- a/migrate/migrate.cxx
+++ b/migrate/migrate.cxx
@@ -206,7 +206,6 @@ create (database& db, bool extra_only) const
// Register the data migration functions for the package database schema.
//
-#if 0
template <schema_version v>
using package_migration_entry_base =
data_migration_entry<v, LIBBREP_PACKAGE_SCHEMA_VERSION_BASE>;
@@ -218,11 +217,19 @@ struct package_migration_entry: package_migration_entry_base<v>
: package_migration_entry_base<v> (f, "package") {}
};
+// Set the unbuildable reason for unbuildable packages.
+//
+// Note that we are unable to restore the exact reason and so always set it
+// to 'unbuildable'.
+//
+//#if 0
static const package_migration_entry<18>
package_migrate_v18 ([] (database& db)
{
+ db.execute ("UPDATE package SET unbuildable_reason = 'unbuildable' "
+ "WHERE NOT buildable");
});
-#endif
+//#endif
// main() function
//