예제 #1
0
파일: __init__.py 프로젝트: smits/bloom
 def handle_arguments(self, args):
     self.interactive = args.interactive
     self.debian_inc = args.debian_inc
     self.os_name = args.os_name
     self.distros = args.distros
     if self.distros in [None, []]:
         self.distros = get_ubuntu_targets(self.rosdistro)
     self.install_prefix = args.install_prefix
     if args.install_prefix is None:
         self.install_prefix = self.default_install_prefix
     self.prefix = args.prefix
     self.branches = match_branches_with_prefix(self.prefix, get_branches)
     if len(self.branches) == 0:
         error("No packages found, check your --prefix or --src arguments.")
         return code.NO_PACKAGE_XML_FOUND
     self.packages = {}
     self.tag_names = {}
     self.names = []
     self.branch_args = []
     for branch in self.branches:
         stackage, kind = get_stackage_from_branch(branch)
         self.packages[stackage.name] = (stackage, kind)
         self.names.append(stackage.name)
         args = self.generate_branching_arguments(stackage, branch)
         self.branch_args.extend(args)
예제 #2
0
파일: rosdebian.py 프로젝트: po1/bloom
 def handle_arguments(self, args):
     self.rosdistro = args.rosdistro
     self.default_install_prefix += self.rosdistro
     ret = DebianGenerator.handle_arguments(self, args)
     if args.distros in [None, []]:
         args.distros = get_ubuntu_targets(self.rosdistro)
     return ret