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
=== modified file 'bin/updates-available'
--- bin/updates-available 2009-03-18 19:15:52 +0000
+++ bin/updates-available 2009-03-25 18:59:02 +0000
@@ -93,6 +93,13 @@
93 print_updates $u93 print_updates $u
94fi94fi
9595
96# If zypper exists, use it
97if [ -x /usr/bin/zypper ]; then
98 u=`/usr/bin/zypper --no-refresh lu --best-effort | grep 'v |' | wc -l`
99 echo "$u" > $mycache
100 print_updates $u
101fi
102
96# If yum exists, use it103# If yum exists, use it
97if [ -x /usr/bin/yum ]; then104if [ -x /usr/bin/yum ]; then
98 u=`/usr/bin/yum list updates | grep -c "updates"`105 u=`/usr/bin/yum list updates | grep -c "updates"`

Subscribers

People subscribed via source and target branches