haraka 0.2.20__py3-none-any.whl → 0.2.21__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- haraka/post_gen/runner.py +1 -1
- haraka/post_gen/service/fileOps/purge.py +8 -4
- {haraka-0.2.20.dist-info → haraka-0.2.21.dist-info}/METADATA +1 -1
- {haraka-0.2.20.dist-info → haraka-0.2.21.dist-info}/RECORD +8 -8
- /haraka/post_gen/service/{git → gitOps}/__init__.py +0 -0
- /haraka/post_gen/service/{git → gitOps}/gitops.py +0 -0
- {haraka-0.2.20.dist-info → haraka-0.2.21.dist-info}/WHEEL +0 -0
- {haraka-0.2.20.dist-info → haraka-0.2.21.dist-info}/top_level.txt +0 -0
haraka/post_gen/runner.py
CHANGED
@@ -5,7 +5,7 @@ from haraka.utils import divider, Logger
|
|
5
5
|
from haraka.post_gen.service.command import CommandRunner
|
6
6
|
from haraka.post_gen.service.fileOps.files import FileOps
|
7
7
|
from haraka.post_gen.service.fileOps.purge import ResourcePurger
|
8
|
-
from haraka.post_gen.service.
|
8
|
+
from haraka.post_gen.service.gitOps.gitops import GitOps
|
9
9
|
|
10
10
|
|
11
11
|
def main(cfg: PostGenConfig) -> None:
|
@@ -85,15 +85,19 @@ class ResourcePurger:
|
|
85
85
|
rel = path.relative_to(root).as_posix()
|
86
86
|
self._log.debug(f"Relative path for inspection: {rel}")
|
87
87
|
|
88
|
+
# Match directory paths explicitly with trailing slash
|
89
|
+
if path.is_dir() and spec.match_file(f"{rel}/"):
|
90
|
+
self._log.debug(f"Path matches keep patterns: {rel}/")
|
91
|
+
self._log.debug(f"Keeping directory: {rel}")
|
92
|
+
continue
|
93
|
+
|
94
|
+
# Regular file matching
|
88
95
|
if spec.match_file(rel):
|
89
96
|
self._log.debug(f"Path matches keep patterns: {rel}")
|
90
97
|
self._log.debug(f"Keeping file: {rel}")
|
91
98
|
continue
|
92
|
-
elif path.is_dir() and spec.match_file(f"{rel}/"):
|
93
|
-
self._log.debug(f"Path matches keep patterns: {rel}")
|
94
|
-
self._log.debug(f"Keeping directory: {rel}")
|
95
|
-
continue
|
96
99
|
|
100
|
+
# If path didn't match, delete
|
97
101
|
if path.is_dir():
|
98
102
|
self._f.remove_dir(path)
|
99
103
|
self._log.debug(f"Deleted directory: {path}")
|
@@ -8,7 +8,7 @@ haraka/art/ascii/frame/border.py,sha256=n7qaLxzzBmf8ewatbe5gN97DO4afZM67bBjpU1Oq
|
|
8
8
|
haraka/art/ascii/frame/framer.py,sha256=s_-lsb-hGhlH_73q5iTtk8KHW0MSeSHSAvNFVmL1c9A,3951
|
9
9
|
haraka/art/ascii/frame/width_utils.py,sha256=in4AV3gTBBXUX6N01j67Icu9vsHFomybBN8rpL3sQ5s,810
|
10
10
|
haraka/post_gen/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
|
-
haraka/post_gen/runner.py,sha256=
|
11
|
+
haraka/post_gen/runner.py,sha256=CgC3-mOA6dOovJBCLykrec_Segitbu0XesMH6jsl6lM,3271
|
12
12
|
haraka/post_gen/config/__init__.py,sha256=-_XkJ_Dni28yJCMfIceQSiH1wa_hHsZMoBTyvR9Ikbc,62
|
13
13
|
haraka/post_gen/config/config.py,sha256=nmsQ19ONWE76GFQtah_PUO1HygE-ZCCOfK03M-t-kMs,1310
|
14
14
|
haraka/post_gen/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -17,9 +17,9 @@ haraka/post_gen/service/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG
|
|
17
17
|
haraka/post_gen/service/command.py,sha256=yvEzW9rMSXWeQ_2DXuQNtGH6sRuZnK6viMud-amFQXw,2348
|
18
18
|
haraka/post_gen/service/fileOps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
19
19
|
haraka/post_gen/service/fileOps/files.py,sha256=Jm_0bhvVnNqSPGKQ2RnMpx8JLV74M-IXMmwly9fpmVw,3020
|
20
|
-
haraka/post_gen/service/fileOps/purge.py,sha256=
|
21
|
-
haraka/post_gen/service/
|
22
|
-
haraka/post_gen/service/
|
20
|
+
haraka/post_gen/service/fileOps/purge.py,sha256=yMdjWPBj_k06gDw9hCoZmtv69KwuZdSROABPUNl1lVA,3911
|
21
|
+
haraka/post_gen/service/gitOps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
22
|
+
haraka/post_gen/service/gitOps/gitops.py,sha256=clWny1m9qB4yr8asba8JwqBjewlMVsJUmIOCLtAL8RI,4052
|
23
23
|
haraka/utils/__init__.py,sha256=3Cp4u0dyAGcmqes-tIr95KFsNsJx5Ji5Yzkto9546Hs,168
|
24
24
|
haraka/utils/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
25
25
|
haraka/utils/common/utils.py,sha256=kMnMXe_hcxGkD0MKGmR1lIwsRND7BaFPRbGN4PwonfM,360
|
@@ -29,7 +29,7 @@ haraka/utils/manifests/go-grpc-gateway-buf.yml,sha256=47DEQpj8HBSa-_TImW-5JCeuQe
|
|
29
29
|
haraka/utils/manifests/go-grpc-protoc.yml,sha256=OaQlfW_S_OguhW_UcpBVdqdEtUMlg-SrT4bqLhQrY7Y,936
|
30
30
|
haraka/utils/manifests/java-springboot.yml,sha256=q88hrqL44jumOUTySK78OPRdKxZlTqY9QqR8HtP4VBE,998
|
31
31
|
haraka/utils/manifests/python-fastapi.yml,sha256=nhO6S9j_r-S10nM8nuw7PtR247-ePhBXHvaXg74CjWw,922
|
32
|
-
haraka-0.2.
|
33
|
-
haraka-0.2.
|
34
|
-
haraka-0.2.
|
35
|
-
haraka-0.2.
|
32
|
+
haraka-0.2.21.dist-info/METADATA,sha256=LiI-KM9vch-bqJgeSyPJiK2nguFqqgPdQtKJ4LUu-ww,579
|
33
|
+
haraka-0.2.21.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
34
|
+
haraka-0.2.21.dist-info/top_level.txt,sha256=1khpwypLKWoklVd_CgFiwAfcctVSXRoRPc3BI9lyIXo,7
|
35
|
+
haraka-0.2.21.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|