Skip to content

Commit

Permalink
- do_status: mark a frozen package with an "F"
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-h committed Nov 21, 2014
1 parent fddf2e3 commit 42d3e81
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion osc/commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -4131,6 +4131,7 @@ def do_status(self, subcmd, opts, *args):
'M' Modified
'?' item is not under version control
'!' item is missing (removed by non-osc command) or incomplete
'F' Frozen (use "osc pull" to merge conflicts) (package-only state)
examples:
osc st
Expand Down Expand Up @@ -4164,7 +4165,9 @@ def do_status(self, subcmd, opts, *args):
# state is != ' '
lines.append(statfrmt(st, os.path.normpath(os.path.join(prj.dir, pac))))
continue
if st == ' ' and opts.verbose or st != ' ':
if p.isfrozen():
lines.append(statfrmt('F', os.path.normpath(os.path.join(prj.dir, pac))))
elif st == ' ' and opts.verbose or st != ' ':
lines.append(statfrmt(st, os.path.normpath(os.path.join(prj.dir, pac))))
states = p.get_status(opts.show_excluded, *excl_states)
for st, filename in sorted(states, lambda x, y: cmp(x[1], y[1])):
Expand Down

0 comments on commit 42d3e81

Please sign in to comment.