Commit 823466ff authored by Sebastien Luttringer's avatar Sebastien Luttringer
Browse files

list command display md5 in line

parent 0af3cac3
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -666,20 +666,20 @@ class RepositoryManager(object):
            l = []
            for imgp in sorted(images.keys()):
                img = images[imgp]
                l.append(u"#light##blue#%s#reset#/#light#%s#reset#:#light##purple#%s#reset#" % (
                l.append(u"%s#R#/#l##b#%s#R#:#p#%s#R#" % (
                        img["repo"], img["name"], img["version"]))
                if o_md5 or o_long:
                    l.append(u" #light#md5:#reset# %s" % img["md5"])
                    l[-1] = l[-1] + u" (#y#%s#R#)" % img["md5"]
                if o_date or o_long:
                    l.append(u" #light#date:#reset# %s" % istools.time_rfc2822(img["date"]))
                    l.append(u"  #l#date:#R# %s" % istools.time_rfc2822(img["date"]))
                if o_author or o_long:
                    l.append(u" #light#author:#reset# %s" % img["author"])
                    l.append(u"  #l#author:#R# %s" % img["author"])
                if o_size or o_long:
                    l.append(u" #light#size:#reset# %s" % istools.human_size(img["size"]))
                    l.append(u"  #l#size:#R# %s" % istools.human_size(img["size"]))
                if o_url or o_long:
                    l.append(u" #light#url:#reset# %s" % img["url"])
                    l.append(u"  #l#url:#R# %s" % img["url"])
                if o_description or o_long:
                    l.append(u" #light#description:#reset# %s" % img["description"])
                    l.append(u"  #l#description:#R# %s" % img["description"])
            s = os.linesep.join(l)
        if len(s) > 0:
            out(s)