Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
installsystems
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Seblu
installsystems
Commits
20259050
Commit
20259050
authored
13 years ago
by
Sebastien Luttringer
Browse files
Options
Downloads
Patches
Plain Diff
list search on name if no / is present in pattern
parent
7a7dc2fb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
installsystems/repository.py
+10
-4
10 additions, 4 deletions
installsystems/repository.py
with
10 additions
and
4 deletions
installsystems/repository.py
+
10
−
4
View file @
20259050
...
...
@@ -611,10 +611,16 @@ class RepositoryManager(object):
for
img
in
self
[
reponame
].
images
():
imgname
=
u
"
%s/%s:%s
"
%
(
reponame
,
img
[
"
name
"
],
img
[
"
version
"
])
images
[
imgname
]
=
img
# filter with pattern
for
k
in
images
.
keys
():
if
not
fnmatch
.
fnmatch
(
k
,
pattern
):
del
images
[
k
]
if
u
"
/
"
in
pattern
:
# filter with pattern on path
for
k
in
images
.
keys
():
if
not
fnmatch
.
fnmatch
(
k
,
pattern
):
del
images
[
k
]
else
:
# filter on image name
for
k
,
v
in
images
.
items
():
if
not
fnmatch
.
fnmatch
(
v
[
"
name
"
],
pattern
):
del
images
[
k
]
# filter multiple versions
if
not
all_version
:
for
repo
in
set
((
images
[
i
][
"
repo
"
]
for
i
in
images
)):
...
...
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