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
8b052d98
Commit
8b052d98
authored
13 years ago
by
Aurélien Dunand
Committed by
Seblu
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add Unix globbing capability for repo_filter
parent
455c71b1
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
bin/is
+6
-4
6 additions, 4 deletions
bin/is
with
6 additions
and
4 deletions
bin/is
+
6
−
4
View file @
8b052d98
...
...
@@ -9,6 +9,7 @@ InstallSystems Command line Tool
import
os
import
time
import
fnmatch
import
datetime
import
argparse
import
installsystems
...
...
@@ -37,10 +38,11 @@ def load_repositories(args):
else
:
# from config
for
repoconf
in
RepoConfigFile
(
args
.
repo_config
).
repos
:
# filtering on repository name if present
if
args
.
repo_filter
is
not
None
and
repoconf
.
name
!=
args
.
repo_filter
:
continue
repoman
.
register
(
repoconf
)
if
args
.
repo_filter
is
None
:
repoman
.
register
(
repoconf
)
else
:
if
len
(
fnmatch
.
filter
([
repoconf
.
name
],
args
.
repo_filter
))
>
0
:
repoman
.
register
(
repoconf
)
return
repoman
def
c_new
(
parser
,
args
):
...
...
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