|
Bugzilla – Full Text Bug Listing |
| Summary: | YaST User-management fails several times if software-management is running | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 10.2 | Reporter: | Forgotten User --EoyBps8f <forgotten_--EoyBps8f> |
| Component: | YaST2 | Assignee: | Ladislav Slezák <lslezak> |
| Status: | RESOLVED FIXED | QA Contact: | Jiri Srain <jsrain> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | jsuchome, scott |
| Version: | RC 1 | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | Other | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: | Patch for PackageSystem.ycp | ||
|
Description
Forgotten User --EoyBps8f
2006-12-01 19:13:29 UTC
Please attach your yast log files. http://en.opensuse.org/Bugs/YaST Thank you. So you cannot re-produce it? It is really a bad habit to use more keystrokes in order to request logs instead of just trying to re-produce the bug with only five clicks. If this was something more complicated to re-produce, fair enough, but it is too easy. If you cannot re-produce it, mark it as invalid. I do not use that feature and just discovered the bug by chance. Logs are not needed, I can reproduce it. The problem is in multiple call of Package::Available (it is called for each involved module: yast2-nis-client, ldap-client, samba-client). It fails, because it cannot access the source, but only returns boolean value so yast2-users cannot know it shouldn't call this function again. Ladislav, what could we do here? Could I query bindings somehow to get the information about the lock/unavalability so I would omit Package::Available calls? Or should the bindings cache the information inside so the next call can return the result more quickly? You can check if the package manager is available by explicit call Pkg::Connect() (or even better by PackageLock::Check()). Call this function before any other Pkg:: call. Failed connection to libzypp must be handled in YCP scripts. :-( but it is not sufficient because the problem occurs when the source is not accesible and PackageLock::Check() doesn't check this. Created attachment 120528 [details]
Patch for PackageSystem.ycp
Patch: PackageSystem::Available() returns nil if there is no installation source available.
yast2-users-2.15.13 check possible nil result of Package::Available call. Package::Available() has been fixed in yast2-packager-2.15.17 *** Bug 263664 has been marked as a duplicate of this bug. *** Re comment #3. Thank you Steve for your common sense approach and look forward to 10,3 |