diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-12-31 17:01:44 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-12-31 17:01:44 +0000 |
commit | 34a7633ab3a18cf02261163c4c83af3034a5292b (patch) | |
tree | d179042e3266c63ea8cd9d36fc66b7226d9ab55d | |
parent | 3e315edde07f7392fa40b353445d0bddb721e73f (diff) |
libsisyphus : decorate metadata refresh function...it will give an aditional clue of what is happening
-rw-r--r-- | src/backend/libsisyphus.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/backend/libsisyphus.py b/src/backend/libsisyphus.py index e728aee..df1fef9 100644 --- a/src/backend/libsisyphus.py +++ b/src/backend/libsisyphus.py @@ -250,7 +250,8 @@ def syncPortageConfig(): gitExecStage6 = subprocess.Popen(['git', 'gc', '--prune=now', '--quiet'], stdout=subprocess.PIPE) gitExecStage6.wait() -def regenPortageMetadata(): +@animation.wait('refreshing metadata') +def refreshPortageMetadata(): if os.path.isdir(portageMetadataDir): for files in os.listdir(portageMetadataDir): if os.path.isfile(os.path.join(portageMetadataDir, files)): @@ -289,20 +290,20 @@ def startUpdate(): syncOverlayTree() syncPortageConfig() syncRemoteDatabase() - regenPortageMetadata() + refreshPortageMetadata() elif not needsOverlayTreeSync == 1: syncPortageTree() syncOverlayTree() syncPortageConfig() syncRemoteDatabase() - regenPortageMetadata() + refreshPortageMetadata() elif not needsPortageTreeSync == 1: if needsOverlayTreeSync == 1: syncPortageTree() syncOverlayTree() syncPortageConfig() syncRemoteDatabase() - regenPortageMetadata() + refreshPortageMetadata() elif not needsOverlayTreeSync == 1: syncPortageConfig() @@ -778,7 +779,7 @@ def injectGitlabMaster(): setGitlabMaster() setHardenedProfile() setJobs() - regenPortageMetadata() + refreshPortageMetadata() def injectPagureMaster(): checkRoot() @@ -786,7 +787,7 @@ def injectPagureMaster(): setPagureMaster() setHardenedProfile() setJobs() - regenPortageMetadata() + refreshPortageMetadata() def injectGitlabNext(): checkRoot() @@ -794,7 +795,7 @@ def injectGitlabNext(): setGitlabNext() setHardenedProfile() setJobs() - regenPortageMetadata() + refreshPortageMetadata() def injectPagureNext(): checkRoot() @@ -802,7 +803,7 @@ def injectPagureNext(): setPagureNext() setHardenedProfile() setJobs() - regenPortageMetadata() + refreshPortageMetadata() def showHelp(): print("\n" + "Usage : sisyphus command [package(s)] || [file(s)]" + "\n") |