Jens Deppe wrote:
> Hello,
> 
> I'm trying to use the DC with a manifest with package names in the 
> following format as I want to build an AI iso with specifically 
> versioned bits:
> 
>      <pkg name="SUNWcsd at 0.5.11,5.11-0.101"/>
> 
> However, when running distro_const, the XML fails to validate - I'm 
> presuming because of the following code in 
> cmd/distro_const/ValidatorModule.py which is validating the XML.
> 
>      # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>      def is_wildcard(self, node):
>      # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>      # Returns True if disallowed_chars are found in the node's value.
>      # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>          disallowed_chars = "*...@[]{}|><()#$\"\'\\"
>          value = node.get_value()
>          for dchar in disallowed_chars:
>              if (value.find(dchar) != -1):
>                  return True
>          return False
> 
> Is this expected behaviour?
> 

Hardly.  Package names should be validated as FMRI's.

Dave

Reply via email to