Commit Graph

11 Commits

Author SHA1 Message Date
Steven Armstrong 7d61b77708 fix autorequire dependency handling
- inherit explicit requirements that the user defined himself
- but _not_ implicit requirements that cdist added for autorequire

Changes:
- added new .autorequire property to CdistObject to keep track of implicit autorequire dependencies
- Emulator appends implicit requirements to this .autorequire property
- DependencyResolver preprocess these .autorequire properties before resolving normal dependencies
- refactored and documented DependencyResolver so it's clearer what happens and easier to use from tests
- update test cases to match new DependencyResolver behaviour

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-05-03 10:16:08 +02:00
Nico Schottelius 0082b7f07c allow objects to start with /, but not to contain //; sanitise after validation
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-14 12:41:13 +01:00
Nico Schottelius 632146114c update copyright
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 14:30:27 +01:00
Nico Schottelius 8f75a9133f do not fail validation on empty object_id
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 10:38:36 +01:00
Nico Schottelius 1e5226e21c fix indention errors due to vim c&p
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 08:51:40 +01:00
Nico Schottelius 2492d51f6f make object_from_name() better readable
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 07:56:37 +01:00
Nico Schottelius 097b4ea6ad :%s/self.type/self.cdist_type/g
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 07:50:11 +01:00
Nico Schottelius f27730e10b finish rewrite to instance method
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 07:45:32 +01:00
Nico Schottelius 0c990e1756 add singleton / no object_id test to CdistObject
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 07:25:04 +01:00
Nico Schottelius fb4f8784b6 rename Type => CdistType
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-12 01:18:14 +01:00
Nico Schottelius 1314567012 also begin to prefix type with cdist
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-12 01:10:57 +01:00