Adapt to new fork_call API of obs_service_gbp_utils
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 29 Apr 2014 14:25:26 +0000 (17:25 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 29 Apr 2014 15:53:54 +0000 (18:53 +0300)
Now fork_call() returns a callable instead of directly calling the
function.

Change-Id: I608ecfcde3161b6ee63be597e12a618ac4681c7c
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
obs_service_gbs/command.py
packaging/obs-service-gbs.spec

index 3598263..65638f1 100644 (file)
@@ -110,7 +110,7 @@ def gbs_export(repo, args, config):
         LOGGER.info('Exporting packaging files with GBS')
         LOGGER.debug('gbs args: %s' % gbs_args)
         try:
-            fork_call(uid, gid, cmd_exportgbs_args)
+            fork_call(uid, gid, cmd_export)(gbs_args)
         except GbpServiceError as err:
             LOGGER.error('Internal service error when trying to run GBS: '
                          '%s' % err)
index f56484b..589b634 100644 (file)
@@ -16,7 +16,7 @@ Source:         %{name}-%{version}.tar.bz2
 Requires:       gbs-export
 Requires:       git-buildpackage-common
 Requires:       gbp-repocache
-Requires:       obs-service-git-buildpackage-utils > 0.5
+Requires:       obs-service-git-buildpackage-utils > 0.6
 BuildRequires:  python
 BuildRequires:  python-setuptools
 %if 0%{?do_unittests}