A repair mechanism within a code management library system for repairing
build code that is infected with malicious code. When a virus pattern is
detected in a component of a source code, other components in the source
code containing dependencies upon the first component are identified.
This identification may be based on rules defined from relationships
between the infected component and the other components in the source
code. The component and the other components that are identified as
having dependencies upon the infected component are retracted from the
software product build. The infected component and the other identified
components are then replaced with a previous archive of the code build.
The software product build of the source code may then be performed.