forked from semios/semios-packages
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8fe867991c | ||
|
|
0cc9a5c843 |
+6
-1
@@ -83,7 +83,10 @@ def _do_auto_pack(pc: pkgcomposer.PkgComposer, srcdir: str, dstdir: str, filter)
|
|||||||
pc.makedirs(os.path.dirname(f"{dstdir}/{ent.name}"))
|
pc.makedirs(os.path.dirname(f"{dstdir}/{ent.name}"))
|
||||||
pc.addfile(ent.path, f"{dstdir}/{ent.name}")
|
pc.addfile(ent.path, f"{dstdir}/{ent.name}")
|
||||||
elif ent.is_symlink() and not os.path.isabs(os.readlink(ent.path)):
|
elif ent.is_symlink() and not os.path.isabs(os.readlink(ent.path)):
|
||||||
pc.addfile(ent.path, f"{dstdir}/{ent.name}")
|
try:
|
||||||
|
pc.addfile(ent.path, f"{dstdir}/{ent.name}")
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def _is_dev_file(ent) -> bool:
|
def _is_dev_file(ent) -> bool:
|
||||||
@@ -94,6 +97,8 @@ def _is_dev_file(ent) -> bool:
|
|||||||
or ent.name.endswith(".pc")
|
or ent.name.endswith(".pc")
|
||||||
or ent.name.endswith(".h")
|
or ent.name.endswith(".h")
|
||||||
or ent.name.endswith(".cmake")
|
or ent.name.endswith(".cmake")
|
||||||
|
or ent.name.endswith(".inc")
|
||||||
|
or ("Makefile" in ent.name)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user