Merge lp:~snorp/byobu/suse-fixes into lp:byobu

Proposed by James Willcox
Status: Merged
Merged at revision: not available
Proposed branch: lp:~snorp/byobu/suse-fixes
Merge into: lp:byobu
Diff against target: None lines
To merge this branch: bzr merge lp:~snorp/byobu/suse-fixes
Reviewer Review Type Date Requested Status
Dustin Kirkland  Approve
Review via email: mp+4905@code.launchpad.net
To post a comment you must log in.
Revision history for this message
James Willcox (snorp) wrote :

This has a small fix for SUSE to use zypper in updates-available

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Hi there! Thanks for the contribution. Looks straight-forward. I'm not familiar with this tool, but I'll trust you that it works as intended ;-)

Cheers,
:-Dustin

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/updates-available'
2--- bin/updates-available 2009-03-18 19:15:52 +0000
3+++ bin/updates-available 2009-03-25 18:59:02 +0000
4@@ -93,6 +93,13 @@
5 print_updates $u
6 fi
7
8+# If zypper exists, use it
9+if [ -x /usr/bin/zypper ]; then
10+ u=`/usr/bin/zypper --no-refresh lu --best-effort | grep 'v |' | wc -l`
11+ echo "$u" > $mycache
12+ print_updates $u
13+fi
14+
15 # If yum exists, use it
16 if [ -x /usr/bin/yum ]; then
17 u=`/usr/bin/yum list updates | grep -c "updates"`

Subscribers

People subscribed via source and target branches