[narval] the lgp_suffix option of lgp.build checker is now used as is draft
authorDavid Douard <david.douard@logilab.fr>
Fri, 21 Nov 2014 20:07:15 +0100
changeset 1782 69394bafe4bd
parent 1781 37db6358b486
child 1783 e3aad84adf03
[narval] the lgp_suffix option of lgp.build checker is now used as is it is now the responsibility of the caller to build the desired suffix instead of a hardcoded ~rev<csid>.
_narval/checkers/apycot/lgp.py
--- a/_narval/checkers/apycot/lgp.py	Fri Nov 21 00:50:25 2014 +0100
+++ b/_narval/checkers/apycot/lgp.py	Fri Nov 21 20:07:15 2014 +0100
@@ -80,10 +80,11 @@
             'default': 'no',
         },
         'lgp_suffix': {
-            'help': ('append vcs revision to the package version'),
+            'help': ('a suffix to append the the package version'),
         },
         'lgp_tarball': {
-            'help': ('use given tarball to build debian package; if unset, generate it using setup.py sdist'),
+            'help': ('use given tarball to build debian package; if unset, '
+                     'generate it using setup.py sdist'),
         },
     }
 
@@ -109,8 +110,7 @@
             cmd.logger.addHandler(handler)
             args = ['-v', '-s', sign, '-d', ','.join(dist), '-r', build_folder ]
             if suffix:
-                repo = test.apycot_repository()
-                args += ['--suffix', '~rev%s' % repo.revision()]
+                args += ['--suffix', suffix]
             if tarball:
                 args += ['--orig-tarball', os.path.abspath(tarball)]
             exit_status = cmd.main_run(args, LGP.rcfile)