Package: osc
Section: devel
Architecture: all
-Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}, python3-urlgrabber, python3-rpm, python3-keyring, python3-gobject, python3-m2crypto
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}, python3-urlgrabber, python3-rpm, python3-keyring, python3-m2crypto
Suggests: build (> 2010.04.24)
Description: openSUSE (buildsystem) commander
Commandline client for the openSUSE Build Service, which allows to access
import keyring
GENERIC_KEYRING = True
except:
- try:
- import gobject
- gobject.set_application_name('osc')
- import gnomekeyring #pylint: disable=import-error
- if os.environ['GNOME_DESKTOP_SESSION_ID']:
- # otherwise gnome keyring bindings spit out errors, when you have
- # it installed, but you are not under gnome
- # (even though hundreds of gnome-keyring daemons got started in parallel)
- # another option would be to support kwallet here
- GNOME_KEYRING = gnomekeyring.is_available()
- except:
- pass
+ pass
def _get_processors():
if not skip_local_service_run:
r = self.run_source_services(mode="trylocal", verbose=verbose)
- if r is not 0:
+ if r != 0:
# FIXME: it is better to raise this in Serviceinfo.execute with more
# information (like which service/command failed)
raise oscerr.ServiceRuntimeError('A service failed with error: %d' % r)
def __reqprov(self, tag, flags, version):
pnames = self.header.gettag(tag)
if not pnames:
- return []
+ return []
pnames = pnames.data
pflags = self.header.gettag(flags).data
pvers = self.header.gettag(version).data
BuildRequires: python3-urlgrabber
Requires: python3-urlgrabber
Requires: python3-keyring
-Requires: python3-gobject
Requires: python3-rpm
%if 0%{?suse_version} || "0%{?tizen_version}" != "0"