[Bug 345425] New: repository refreshing and opensue updater
https://bugzilla.novell.com/show_bug.cgi?id=345425 Summary: repository refreshing and opensue updater Product: openSUSE 10.3 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: xenoterracide@gmail.com QAContact: jsrain@novell.com Found By: --- this is semi related to bug 344633 and 344637 I've had to disable the repositories from refreshing automagically every time I try to do something, because I don't have a constant internet connection and even if I did it's annoying that they are refreshing every time I try to do something. I'd like a setting that tells only opensuse updater to refresh them (this assumes it refreshes them all, I know it doesn't check all repos for updates, or something). instead the updater relies on whether I have auto-refresh enabled. since I don't it has become useless cruft. 1 possible solution would be to add a setting next to auto-refresh to update with opensuse updater. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=345425
Caleb Cushing
https://bugzilla.novell.com/show_bug.cgi?id=345425
User chrubis@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=345425#c1
Cyril Hrubis
https://bugzilla.novell.com/show_bug.cgi?id=345425
User tgoettlicher@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=345425#c2
Thomas Göttlicher
https://bugzilla.novell.com/show_bug.cgi?id=345425
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=345425#c3
Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=345425
User tgoettlicher@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=345425#c4
Thomas Göttlicher
I'm not sure i understand, do you mean xml _output_ perhaps? Because i see no problem with invoking zypper refresh <repo> even now except the output. Please excuse my unclear question. I mean some mechanism within the xml to tell zypper to refresh its repos before it starts an operation like checking for patches when autorefresh is disabled:
(ugly xml-like syntax) <refresh/> <checkpatches/> <checkupdates/>
Yes, it seems i have to work on it ASAP, since you guys depend on it too much :O) That would be great but it isn't that urgent. I would like to add the xml-in/out mechanism to the updater for the alpha version. Don't hurry.
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=345425
Thomas Göttlicher
https://bugzilla.novell.com/show_bug.cgi?id=345425
Thomas Göttlicher
https://bugzilla.novell.com/show_bug.cgi?id=345425
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=345425#c5
--- Comment #5 from Ján Kupec
(In reply to comment #3 from Jan Kupec)
I'm not sure i understand, do you mean xml _output_ perhaps? Because i see no problem with invoking zypper refresh <repo> even now except the output. Please excuse my unclear question. I mean some mechanism within the xml to tell zypper to refresh its repos before it starts an operation like checking for patches when autorefresh is disabled:
(ugly xml-like syntax)
<refresh/> <checkpatches/> <checkupdates/>
I still don't understand why not simply executing zypper refresh before checking for updates. You can also do it per repo (refresh only the update repos). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=345425
User tgoettlicher@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=345425#c7
Thomas Göttlicher
I still don't understand why not simply executing zypper refresh before checking for updates. You can also do it per repo (refresh only the update repos). As we decided not to use checkpatches-wrapper anymore, checking for patches runs with user privileges but "zypper refresh" needs root privileges. How can I refresh the update repo without annoying the user with a password prompt?
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=345425
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=345425#c8
Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=345425
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=345425#c9
--- Comment #9 from Ján Kupec
We can also make it a general wrapper for all zypper commands (passing all the arguments) if that makes sense to
Ehm. Please forget i ever said this part :O) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=345425
User tgoettlicher@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=345425#c10
--- Comment #10 from Thomas Göttlicher
I meant to drop zypp-check-patches (since we don't need the code anymore as zypper --xmlout provides it), not the suid wrapper. Ok, it's clear to me, now.
(In reply to comment #9 from Ján Kupec)
Ehm. Please forget i ever said this part :O) Done. I can't remember anything. :-)
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=345425
User tgoettlicher@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=345425#c11
Thomas Göttlicher
https://bugzilla.novell.com/show_bug.cgi?id=345425
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=345425#c12
Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=345425
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=345425#c13
--- Comment #13 from Ján Kupec
BTW: please try to use zypper --xmlout -t package -t patch instead of xml-updates, it should do just that now. I'd like to drop the xml-updates command.
i mean zypper --xmlout list-updates -t package -t patch :O) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=345425
User tgoettlicher@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=345425#c14
Thomas Göttlicher
What about having zypper-refresh-wrapper only and run the query commands (list-updates, patches, search, info) as user. That would mean having a shell script 'zypper-refresh-and-check' with the following two calls: /usr/sbin/zypper-refresh-wrapper /usr/bin/zypper --xmlout list-updates -t package -t patch
Yes, I guess it might work but I think it isn't the cleanest solution. - This would add another not really needed zypper helper script. - Getting concatenated snippets of xml might confuse the applets (particularly opensuseupdater-gnome, as its xml parser isn't very tolerant) I'd prefer the functionality embedded into zypper because 'refresh' and 'list-updates' belongs together. Is there any cause not to add this to zypper? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=345425
Thomas Göttlicher
https://bugzilla.novell.com/show_bug.cgi?id=345425
User tgoettlicher@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=345425#c15
Thomas Göttlicher
participants (1)
-
bugzilla_noreply@novell.com