def __init__(self, base, *flags):
     '''
     Initialize a manifest entry with the given base path and flags.
     '''
     self.base = base
     self.flags = Flags(*flags)
     if not all(f in self.allowed_flags for f in self.flags):
         errors.fatal('%s unsupported for %s manifest entries' %
                      (','.join(f for f in self.flags
                                if not f in self.allowed_flags), self.type))
Beispiel #2
0
 def setUp(self):
     self.flags = Flags(
         "contentaccessible=yes",
         "appversion>=3.5",
         "application=foo",
         "application=bar",
         "appversion<2.0",
         "platform",
         "abi!=Linux_x86-gcc3",
     )
Beispiel #3
0
 def __init__(self, base, *flags):
     """
     Initialize a manifest entry with the given base path and flags.
     """
     self.base = base
     self.flags = Flags(*flags)
     if not all(f in self.allowed_flags for f in self.flags):
         errors.fatal("%s unsupported for %s manifest entries" % (
             ",".join(f for f in self.flags if f not in self.allowed_flags),
             self.type,
         ))
Beispiel #4
0
 def setUp(self):
     self.flags = Flags('contentaccessible=yes', 'appversion>=3.5',
                        'application=foo', 'application=bar',
                        'appversion<2.0', 'platform', 'abi!=Linux_x86-gcc3')