--no-static -> --create-static
Don't generate -static packages by default...
This commit is contained in:
+3
-3
@@ -77,7 +77,7 @@ def check_path_collision(package, pkgList):
|
||||
# collide. Exp:
|
||||
# pinfo.path: /usr/share
|
||||
# path.path: /usr/share/doc
|
||||
if (path.path.endswith(ctx.const.ar_file_suffix) and not ctx.get_option('no_static')) or \
|
||||
if (path.path.endswith(ctx.const.ar_file_suffix) and ctx.get_option('create_static')) or \
|
||||
(path.path.endswith(ctx.const.debug_file_suffix) and not ctx.get_option('no_debug')):
|
||||
# don't throw collision error for these files.
|
||||
# we'll handle this in gen_files_xml..
|
||||
@@ -610,7 +610,7 @@ class Builder:
|
||||
def add_path(path):
|
||||
# add the files under material path
|
||||
for fpath, fhash in util.get_file_hashes(path, collisions, install_dir):
|
||||
if not ctx.get_option('no_static') \
|
||||
if ctx.get_option('create_static') \
|
||||
and fpath.endswith(ctx.const.ar_file_suffix) \
|
||||
and not package.name.endswith(ctx.const.static_name_suffix) \
|
||||
and util.is_ar_file(fpath):
|
||||
@@ -726,7 +726,7 @@ class Builder:
|
||||
# Strip install directory before building .pisi packages.
|
||||
self.strip_install_dir()
|
||||
|
||||
if not ctx.get_option('no_static'):
|
||||
if ctx.get_option('create_static'):
|
||||
obj = self.generate_static_package_object()
|
||||
if obj:
|
||||
self.spec.packages.append(obj)
|
||||
|
||||
@@ -364,7 +364,7 @@ unpack, setup, build, install, package
|
||||
help=_("bypass errors from ActionsAPI"))
|
||||
self.parser.add_option("-B", "--ignore-comar", action="store_true",
|
||||
default=False, help=_("bypass comar configuration agent"))
|
||||
self.parser.add_option("", "--no-static", action="store_true",
|
||||
self.parser.add_option("", "--create-static", action="store_true",
|
||||
default=False, help=_("don't create a static package with ar files"))
|
||||
self.parser.add_option("", "--no-debug", action="store_true",
|
||||
default=False, help=_("don't create a debug package with debug files"))
|
||||
|
||||
Reference in New Issue
Block a user