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
338fa15a
Commit
338fa15a
authored
13 years ago
by
Seblu
Browse files
Options
Downloads
Patches
Plain Diff
isinstall update local cache only with -u
parent
a14a70b2
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/isinstall
+6
-3
6 additions, 3 deletions
bin/isinstall
with
6 additions
and
3 deletions
bin/isinstall
+
6
−
3
View file @
338fa15a
...
@@ -22,7 +22,7 @@ class DebugAction(argparse.Action):
...
@@ -22,7 +22,7 @@ class DebugAction(argparse.Action):
# Top level argument parsing
# Top level argument parsing
p_main
=
argparse
.
ArgumentParser
()
p_main
=
argparse
.
ArgumentParser
()
p_main
.
add_argument
(
"
-
v
"
,
"
--version
"
,
action
=
"
version
"
,
version
=
installsystems
.
version
,
p_main
.
add_argument
(
"
-
"
,
"
--version
"
,
action
=
"
version
"
,
version
=
installsystems
.
version
,
help
=
"
show installsystems version
"
)
help
=
"
show installsystems version
"
)
p_main
.
add_argument
(
'
-d
'
,
"
--debug
"
,
action
=
DebugAction
,
nargs
=
0
,
p_main
.
add_argument
(
'
-d
'
,
"
--debug
"
,
action
=
DebugAction
,
nargs
=
0
,
help
=
"
active debug mode
"
)
help
=
"
active debug mode
"
)
...
@@ -39,6 +39,8 @@ p_main.add_argument("-V", "--image-version", dest="image_version", type=int, def
...
@@ -39,6 +39,8 @@ p_main.add_argument("-V", "--image-version", dest="image_version", type=int, def
help
=
"
specific image version
"
)
help
=
"
specific image version
"
)
p_main
.
add_argument
(
"
image_name
"
,
type
=
str
,
p_main
.
add_argument
(
"
image_name
"
,
type
=
str
,
help
=
"
image to install
"
)
help
=
"
image to install
"
)
p_main
.
add_argument
(
'
-u
'
,
"
--update
"
,
action
=
"
store_true
"
,
dest
=
"
update
"
,
default
=
False
,
help
=
"
update repository cache
"
)
# program entry point
# program entry point
try
:
try
:
...
@@ -49,8 +51,9 @@ try:
...
@@ -49,8 +51,9 @@ try:
# register command ligne repo
# register command ligne repo
if
args
.
image_path
is
not
None
:
if
args
.
image_path
is
not
None
:
repocache
.
register
(
"
cmdline
"
,
args
.
image_path
,
args
.
data_path
)
repocache
.
register
(
"
cmdline
"
,
args
.
image_path
,
args
.
data_path
)
# update remote info if available
# update remote info if -u options is present
repocache
.
update
()
if
args
.
update
:
repocache
.
update
()
# get image package
# get image package
pkg
=
repocache
.
get
(
args
.
image_name
,
args
.
image_version
)
pkg
=
repocache
.
get
(
args
.
image_name
,
args
.
image_version
)
# create global dict, used to share and transmit data between scripts
# create global dict, used to share and transmit data between scripts
...
...
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