Red Hat Bugzilla – Bug 108131
Package loader should apply '-data' option automatically if apps schema is already loaded
Last modified: 2007-04-18 12:58:48 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.9 (X11; Linux i686; U;) Gecko/20030314
Description of problem:
If the package loader loads an application's data model, but fails on the
initializer stage, then the next time the loader is run on that application it
should automatically skip the schema loading & go straight to the initializer.
ie it should apply the '-data' option automatically.
As a corollory, the -data option should *not* be allowed unless the schema load
has previously completed successfully, since initializers will doubtless depend
on the schema being present.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Loading a package which throws an exception in its initializer
2. Correct the condition causing the exception,
3. Attempt to run the package loader again
Actual Results: dan@camden$ ccm-pkg load ccm-cms-types-article
conflicting tables: [ct_articles]
Expected Results: dan@camden$ ccm-pkg load ccm-cms-types-article
schema already loaded, skipping to initializer stage.
Closing old tickets