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
d489321f
Commit
d489321f
authored
13 years ago
by
Sebastien Luttringer
Browse files
Options
Downloads
Patches
Plain Diff
is list display changelog only with -c or -v option
parent
85f07b46
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/is
+4
-2
4 additions, 2 deletions
bin/is
installsystems/image.py
+6
-5
6 additions, 5 deletions
installsystems/image.py
with
10 additions
and
7 deletions
bin/is
+
4
−
2
View file @
d489321f
...
...
@@ -237,10 +237,10 @@ def c_list(parser, args):
if
len
(
repos
)
>
0
:
for
reponame
in
repos
:
arrow
(
reponame
)
repoman
[
reponame
].
show
(
verbose
=
args
.
verbose
)
repoman
[
reponame
].
show
(
verbose
=
args
.
verbose
,
changelog
=
args
.
changelog
)
else
:
img
,
repo
=
select_image
(
o
,
repoman
,
args
.
best
)
img
.
show
(
verbose
=
args
.
verbose
)
img
.
show
(
verbose
=
args
.
verbose
,
changelog
=
args
.
changelog
)
def
c_move
(
parser
,
args
):
'''
...
...
@@ -429,6 +429,8 @@ p_list.add_argument("-v", action="store_true", dest="verbose", default=False,
help
=
"
verbose output
"
)
p_list
.
add_argument
(
"
-b
"
,
"
--best
"
,
action
=
"
store_true
"
,
default
=
False
,
help
=
"
in best mode, image is the most recent in all repositories
"
)
p_list
.
add_argument
(
"
-c
"
,
"
--changelog
"
,
action
=
"
store_true
"
,
default
=
False
,
help
=
"
display image changelog
"
)
p_list
.
add_argument
(
"
object
"
,
nargs
=
"
*
"
,
help
=
"
object syntax is <path|repository|[repository/]image[:version]>
"
)
p_list
.
set_defaults
(
func
=
c_list
,
subparser
=
p_list
)
...
...
This diff is collapsed.
Click to expand it.
installsystems/image.py
+
6
−
5
View file @
d489321f
...
...
@@ -517,7 +517,7 @@ class PackageImage(Image):
warn
(
"
Invalid changelog: %s
"
%
e
)
return
desc
def
show
(
self
,
verbose
=
False
):
def
show
(
self
,
verbose
=
False
,
changelog
=
False
):
'''
Display image content
'''
...
...
@@ -544,10 +544,11 @@ class PackageImage(Image):
out
(
'
#light##yellow#Content:#reset#
'
)
self
.
_tarball
.
list
(
verbose
)
# display changelog
try
:
self
.
changelog
.
show
(
int
(
self
.
version
),
verbose
)
except
AttributeError
:
pass
if
changelog
or
verbose
:
try
:
self
.
changelog
.
show
(
int
(
self
.
version
),
verbose
)
except
AttributeError
:
pass
def
check
(
self
,
message
=
"
Check MD5
"
):
'''
...
...
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