NikGapps 3.76__py3-none-any.whl → 3.77__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.
NikGapps/cache.py CHANGED
@@ -1,4 +1,6 @@
1
1
  import os
2
+ import time
3
+
2
4
  from dotenv import load_dotenv
3
5
  from NikGapps.build.Build import Build
4
6
  from NikGapps.config.NikGappsConfig import NikGappsConfig
@@ -39,9 +41,7 @@ def cache():
39
41
  project = gitlab_manager.get_project(cached_url)
40
42
  gitattributes = """*.zip filter=lfs diff=lfs merge=lfs -text
41
43
  *.tar.xz filter=lfs diff=lfs merge=lfs -text"""
42
- if project:
43
- gitlab_manager.reset_repository(cached_url, sleep_for=10, gitattributes=gitattributes)
44
- else:
44
+ if not project:
45
45
  project = gitlab_manager.create_repository(cached_url, provide_owner_access=True)
46
46
  gitlab_manager.create_and_commit_file(project_id=project.id, file_path=".gitattributes",
47
47
  content=gitattributes)
@@ -56,6 +56,10 @@ def cache():
56
56
  config_obj.config_package_list = Build.build_from_directory(app_set_list, android_version)
57
57
  for appset in config_obj.config_package_list:
58
58
  appset: AppSet
59
+ # delete the folder to reset the files
60
+ if F.dir_exists(os.path.join(repo_cached.working_tree_dir, appset.title)):
61
+ F.remove_dir(os.path.join(repo_cached.working_tree_dir, appset.title))
62
+ F.make_dir(os.path.join(repo_cached.working_tree_dir, appset.title))
59
63
  for pkg in appset.package_list:
60
64
  pkg: Package
61
65
  compression_modes = [Modes.ZIP, Modes.TAR_XZ]
@@ -66,8 +70,10 @@ def cache():
66
70
  f"{pkg.package_title}{mode}")
67
71
  print("Done!") if CompOps.compress_package(pkg_zip_path, pkg, mode) else print("Failed!")
68
72
  t.taken(f"Total time taken to process the {pkg.package_title}, compressing into {mode}")
69
- repo_cached.git_push(commit_message=f"Compressed {pkg.package_title} for {appset.title}",
70
- push_untracked_files=True, pull_first=True, post_buffer="1048576000")
73
+ time.sleep(5)
74
+ repo_cached.git_push(
75
+ commit_message=f"Compressed {pkg.package_title} for {appset.title} into {mode}",
76
+ push_untracked_files=True, post_buffer="1048576000")
71
77
  if Config.ENVIRONMENT_TYPE.__eq__("production") and F.dir_exists(repo_cached.working_tree_dir):
72
78
  F.remove_dir(repo_cached.working_tree_dir)
73
79
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: NikGapps
3
- Version: 3.76
3
+ Version: 3.77
4
4
  Summary: A short description of your project
5
5
  Home-page: https://github.com/nikgapps/project
6
6
  Author: Nikhil Menghani
@@ -1,6 +1,6 @@
1
1
  NikGapps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  NikGapps/build_config.py,sha256=QVWmRLUIv1US8OWeBwwiAHLTBu6heMF1aFezsud8Fxw,3193
3
- NikGapps/cache.py,sha256=lQTX3-JZOCWhgsiaklKRLSy46FKX9WwQ49dyrLnSQTk,4057
3
+ NikGapps/cache.py,sha256=7z6IODtzW8bEa32KnergLqtViLQD3vBDNQrdIDzLFFA,4316
4
4
  NikGapps/config_upload.py,sha256=0HE7txm73XXxat_cR0JDXWtQUmg1IYK_SktwJS6N34s,652
5
5
  NikGapps/copy_repos.py,sha256=AXI1LIO_4pXkJUTlIsW45JRpEIkmICPVcCDOJ-YIauk,1951
6
6
  NikGapps/main.py,sha256=86OrjdjqZwfdzgrQte6e8ADzGgKms37YaM_QlbY3BlE,2904
@@ -54,9 +54,9 @@ NikGapps/helper/overlay/Resources.py,sha256=bKWJEF2avl3j2ud390HQq9fRMMA8GKh9-KAB
54
54
  NikGapps/helper/overlay/String.py,sha256=nyCAD_dNfwHlOgj4zuKGGz71n20CLEKyZCgrVAmiX2I,469
55
55
  NikGapps/helper/overlay/StringArray.py,sha256=DYPEAIdpicaJ3C08IYW6Q2tnTH6gUFXmu3KhQlHGY5g,563
56
56
  NikGapps/helper/overlay/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
57
- nikgapps-3.76.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
58
- nikgapps-3.76.dist-info/METADATA,sha256=9IA0R3yIAiC1ThJc4QhC9qsVWaT_4Ht6fJf1nazMIWs,4343
59
- nikgapps-3.76.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
60
- nikgapps-3.76.dist-info/entry_points.txt,sha256=iKbeOiuELwTDu5kmQHrU9XBVASWRR6_TuRIRva2UnAY,286
61
- nikgapps-3.76.dist-info/top_level.txt,sha256=CD7RpCb7bzjyvpQLt8hh2gU6X1wj3Z0NIErVkg-nJI4,9
62
- nikgapps-3.76.dist-info/RECORD,,
57
+ nikgapps-3.77.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
58
+ nikgapps-3.77.dist-info/METADATA,sha256=FsehxjZQ6_2fF1nHA3mt568yRo-ns6AQ7hjR-H9Jn6A,4343
59
+ nikgapps-3.77.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
60
+ nikgapps-3.77.dist-info/entry_points.txt,sha256=iKbeOiuELwTDu5kmQHrU9XBVASWRR6_TuRIRva2UnAY,286
61
+ nikgapps-3.77.dist-info/top_level.txt,sha256=CD7RpCb7bzjyvpQLt8hh2gU6X1wj3Z0NIErVkg-nJI4,9
62
+ nikgapps-3.77.dist-info/RECORD,,