Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.admin
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
bob
bob.admin
Merge requests
!70
Try a fix for issue
#77
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Try a fix for issue
#77
issue-77
into
master
Overview
6
Commits
2
Pipelines
0
Changes
1
Merged
André Anjos
requested to merge
issue-77
into
master
7 years ago
Overview
6
Commits
2
Pipelines
0
Changes
1
Expand
Closes
#77 (closed)
Edited
7 years ago
by
André Anjos
0
0
Merge request reports
Compare
master
version 1
46badcc1
7 years ago
master (base)
and
latest version
latest version
3dc2a5f4
2 commits,
7 years ago
version 1
46badcc1
1 commit,
7 years ago
1 file
+
5
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
conda/clean-betas.py
+
5
−
3
Options
@@ -17,9 +17,11 @@ def main(scandir, dry_run):
if
f
.
startswith
(
'
.
'
):
continue
if
not
f
.
endswith
(
'
.tar.bz2
'
):
continue
name
,
version
,
build_string
=
f
[:
-
8
].
rsplit
(
'
-
'
,
2
)
build
=
build_string
.
rsplit
(
'
_
'
)[
-
1
]
hash_
,
build
=
build_string
.
rsplit
(
'
_
'
)
pyver
,
_
=
hash_
.
rsplit
(
'
h
'
,
1
)
name
=
os
.
path
.
basename
(
path
)
+
'
/
'
+
name
if
pyver
:
name
+=
'
/
'
+
pyver
target
=
os
.
path
.
join
(
path
,
f
)
betas
.
setdefault
(
name
,
[]).
append
((
StrictVersion
(
version
),
@@ -39,9 +41,9 @@ def main(scandir, dry_run):
keep_version
,
keep_build
,
_
,
_
=
sorted_packages
[
-
1
]
for
version
,
build
,
mtime
,
path
in
sorted_packages
:
if
version
==
keep_version
and
build
==
keep_build
:
print
(
'
[keep] %s (%u)
'
%
(
path
,
mtime
))
print
(
'
[keep] %s (
time=
%u)
'
%
(
path
,
mtime
))
else
:
print
(
'
remove %s (%u)
'
%
(
path
,
mtime
))
print
(
'
remove %s (
time=
%u)
'
%
(
path
,
mtime
))
if
not
dry_run
:
os
.
unlink
(
path
)
Loading