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
6d486888
Commit
6d486888
authored
13 years ago
by
Seblu
Browse files
Options
Downloads
Patches
Plain Diff
implement globbing on repository name in list
parent
4571b0d8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/is
+6
-2
6 additions, 2 deletions
bin/is
installsystems/repository.py
+7
-0
7 additions, 0 deletions
installsystems/repository.py
with
13 additions
and
2 deletions
bin/is
+
6
−
2
View file @
6d486888
...
...
@@ -12,6 +12,7 @@ import time
import
datetime
import
argparse
import
re
import
fnmatch
import
installsystems
import
installsystems.tools
as
istools
from
installsystems.printer
import
*
...
...
@@ -209,8 +210,11 @@ def c_list(parser, args):
repoman
.
show
(
verbose
=
args
.
verbose
)
else
:
for
o
in
args
.
object
:
if
o
in
repoman
:
repoman
[
o
].
show
(
verbose
=
args
.
verbose
)
repos
=
fnmatch
.
filter
(
repoman
.
names
,
o
)
if
len
(
repos
)
>
0
:
for
reponame
in
repos
:
arrow
(
reponame
)
repoman
[
reponame
].
show
(
verbose
=
args
.
verbose
)
else
:
img
,
repo
=
select_image
(
o
,
repoman
,
args
.
best
)
img
.
show
(
verbose
=
args
.
verbose
)
...
...
This diff is collapsed.
Click to expand it.
installsystems/repository.py
+
7
−
0
View file @
6d486888
...
...
@@ -438,6 +438,13 @@ class RepositoryManager(object):
config
.
offline
=
True
return
Repository
(
config
)
@property
def
names
(
self
):
'''
Return the list of repositories name
'''
return
[
r
.
config
.
name
for
r
in
self
.
repos
]
def
get
(
self
,
name
,
version
=
None
,
best
=
False
):
'''
Crawl repositories to get an image
...
...
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