Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.3
hawk
fix-cibobject-exists.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-cibobject-exists.patch of Package hawk
Index: hawk-0.5.2/hawk/app/models/cib_object.rb =================================================================== --- hawk-0.5.2.orig/hawk/app/models/cib_object.rb +++ hawk-0.5.2/hawk/app/models/cib_object.rb @@ -75,7 +75,8 @@ class CibObject # hacluster, because we need to verify existence regardless of whether # the current user can actually see the object in quesion. def exists?(id, type='*') - Util.safe_x('/usr/sbin/cibadmin', '-Ql', '--xpath', "//configuration//#{type}[@id='#{id}']").chomp != '<null>' + out = Util.safe_x('/usr/sbin/cibadmin', '-Ql', '--xpath', "//configuration//#{type}[@id='#{id}']").chomp + !out.empty? && out != '<null>' end # Find a CIB object by ID and return an instance of the appropriate
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor