def get(self): """Get the attributes from the port by invoking make""" args = [] #: Arguments to be passed to the make target # Pass all the arguments from ports_attr table for i in ports_attr.itervalues(): args.append('-V') args.append(i[0]) return make.make_target(self.origin, args, True).connect(self.parse_attr)
def get(self): """Get the attributes from the port by invoking make""" args = [] #: Arguments to be passed to the make target # Pass all the arguments from ports_attr table for i in ports_attr.itervalues(): args.append('-V') args.append(i[0]) pmake = make.make_target(self.origin, args, True) return pmake.connect(self.parse_attr)
def clean(self, force=False): """Remove port's working director and log files.""" if stacks.Build in self.stages or force: mak = make.make_target(self, "clean", NOCLEANDEPENDS=True) log.debug("Port.clean()", "Port '%s': full clean" % self.origin) return mak.connect(self._post_clean) else: self._post_clean() log.debug("Port.clean()", "Port '%s': quick clean" % self.origin) return True
def _make_target(self, targets, **kwargs): """Build the requested targets.""" pmake = make.make_target(self.port, targets, **kwargs) self.pid = pmake.connect(self.__make).pid