Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mpsd-software-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MPSD Computational Science
mpsd-software-manager
Commits
33305d5b
Commit
33305d5b
authored
1 year ago
by
Ashwin Kumar Karnad
Browse files
Options
Downloads
Patches
Plain Diff
switch to rm -rf
parent
1b7e2e2a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mpsd_software_manager/mpsd_software.py
+2
-2
2 additions, 2 deletions
src/mpsd_software_manager/mpsd_software.py
with
2 additions
and
2 deletions
src/mpsd_software_manager/mpsd_software.py
+
2
−
2
View file @
33305d5b
...
...
@@ -14,7 +14,6 @@ import time
from
pathlib
import
Path
from
typing
import
List
,
Tuple
,
Union
import
re
import
shutil
from
functools
import
cache
import
importlib.metadata
...
...
@@ -1107,7 +1106,8 @@ def remove_environment(mpsd_release, root_dir, package_sets="NONE", force_remove
# if "logs" in folders_to_remove:
# folders_to_remove.remove("logs")
for
folder
in
folders_to_remove
:
shutil
.
rmtree
(
dir_to_remove
/
folder
)
# shutil.rmtree(dir_to_remove / folder) #dosent delete file
run
(
f
"
rm -rf
{
dir_to_remove
/
folder
}
"
,
shell
=
True
,
check
=
True
)
logging
.
warning
(
f
"
Removed release
{
mpsd_release
}
from
{
root_dir
}
"
)
return
# 3rd case: remove specific package_sets from release
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment