Bug 391144

Summary: Wrong command order (--quiet) in auto update
Product: [openSUSE] openSUSE 11.0 Reporter: Anders Norrbring <anders>
Component: YaST2Assignee: Jiří Suchomel <jsuchome>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: jsuchome
Version: Beta 3   
Target Milestone: ---   
Hardware: i386   
OS: openSUSE 11.0   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Anders Norrbring 2008-05-16 05:40:39 UTC
The cron script generated by YaST2 for automatic updates have commands in the wrong order.

The generated line is "zypper up -y --quiet -t patch  --skip-interactive" but --quiet is a global option and should be listed before the command.

The correct and working line is "zypper --quiet up -y -t patch  --skip-interactive"
Comment 1 Jiří Suchomel 2008-05-16 14:21:11 UTC
Hm, but rug probably worked with this order. Couldn't it be possible in zypper?
Comment 2 Jan Kupec 2008-05-20 18:35:07 UTC
I checked SP1's rug, it seems it doesn't like it either. I can recheck with SP2's, but i would expect the same.
Comment 3 Jan Kupec 2008-05-20 18:36:50 UTC
(In reply to comment #1 from Jiri Suchomel)
> Hm, but rug probably worked with this order. Couldn't it be possible in zypper?
Actually it would be _very_ difficult, so i'm glad to see rug does not accept this option after the command :O)

Comment 4 Jiří Suchomel 2008-05-21 05:43:07 UTC
It is strange nobody noticed earlier.
Comment 5 Jiří Suchomel 2008-05-21 05:44:32 UTC
Before fixing this, one more question: is it correct that --skip-interactive is at the end?
Comment 6 Jiří Suchomel 2008-05-21 09:37:34 UTC
Fixed in yast2-online-update-2.16.15