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
6f05f632
Commit
6f05f632
authored
13 years ago
by
Seblu
Browse files
Options
Downloads
Patches
Plain Diff
searching is now handled in repomananger
parent
bcd9f6d8
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
+1
-3
1 addition, 3 deletions
bin/is
installsystems/repository.py
+8
-0
8 additions, 0 deletions
installsystems/repository.py
with
9 additions
and
3 deletions
bin/is
+
1
−
3
View file @
6f05f632
...
...
@@ -201,9 +201,7 @@ def c_search(parser, args):
Search in repository
'''
repoman
=
load_repositories
(
args
)
for
repo
in
repoman
:
arrow
(
repo
.
config
.
name
)
repo
.
search
(
args
.
pattern
)
repoman
.
search
(
args
.
pattern
)
def
c_get
(
parser
,
args
):
'''
...
...
This diff is collapsed.
Click to expand it.
installsystems/repository.py
+
8
−
0
View file @
6f05f632
...
...
@@ -568,3 +568,11 @@ class RepositoryManager(object):
if
verbose
:
s
+=
"
(%s)
"
%
repo
.
config
.
path
out
(
s
)
def
search
(
self
,
pattern
):
'''
Search pattern accross all registered repositories
'''
for
repo
in
self
.
repos
:
arrow
(
repo
.
config
.
name
)
repo
.
search
(
pattern
)
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