Le dimanche, 22 octobre 2017, 12.04:37 h CEST Didier 'OdyX' Raboud a écrit :
> Le dimanche, 22 octobre 2017, 11.52:25 h CEST Didier 'OdyX' Raboud a écrit :
> > $ gbp dch --release --verbose
> > gbp:debug: ['git', 'rev-parse', '--show-cdup']
> > gbp:debug: ['git', 'rev-parse', '--is-bare-repository']
> > gbp:debug: ['git', 'rev-parse', '--git-dir']
> > gbp:debug: ['git', 'symbolic-ref', 'HEAD']
> > gbp:debug: ['git', 'show-ref', 'refs/heads/debian/master']
> > gbp:debug: ['git', 'tag', '-l', 'debian/1.11.0-1']
> > gbp:debug: ['git', 'rev-parse', '--quiet', '--verify',
> > 'debian/1.11.0-1^0']
> > gbp:debug: ['git', 'log', '--pretty=format:%H',
> > 'a1f72589d8e0285b65438bb924197a3dd5a93bb2..HEAD', '--no-merges', '--']
> > gbp:debug: ['git', 'merge-base', 'HEAD', 'upstream/latest']
> > gbp:debug: ['git', 'describe', '--match', 'upstream/*', '--abbrev=0',
> > 'e0ace8819512553d3680e912e419a5df1b8295ab'] gbp:debug: Found upstream
> > version None.
> > gbp:debug: /usr/bin/dpkg ['--compare-versions'] [None, 'lt', '1.11.0-1']
> > 
> > Traceback (most recent call last):
> >   File "/usr/lib/python3/dist-packages/gbp/command_wrappers.py", line 232,
> > 
> > in call ret = self.__call(args)
> > 
> >   File "/usr/lib/python3/dist-packages/gbp/command_wrappers.py", line 125,
> > 
> > in __call stderr=stderr_arg)
> > 
> >   File "/usr/lib/python3.6/subprocess.py", line 709, in __init__
> >   
> >     restore_signals, start_new_session)
> >   
> >   File "/usr/lib/python3.6/subprocess.py", line 1275, in _execute_child
> >   
> >     restore_signals, start_new_session, preexec_fn)
> > 
> > TypeError: expected str, bytes or os.PathLike object, not NoneType
> > 
> > During handling of the above exception, another exception occurred:
> > 
> > Traceback (most recent call last):
> >   File "/usr/bin/gbp", line 151, in <module>
> >   
> >     sys.exit(supercommand())
> >   
> >   File "/usr/bin/gbp", line 147, in supercommand
> >   
> >     return module.main(args)
> >   
> >   File "/usr/lib/python3/dist-packages/gbp/scripts/dch.py", line 506, in
> > 
> > main options.upstream_branch, cp)
> > 
> >   File "/usr/lib/python3/dist-packages/gbp/scripts/dch.py", line 52, in
> > 
> > guess_version_from_upstream if compare_versions(version, cp.version) > 0:
> >   File "/usr/lib/python3/dist-packages/gbp/deb/__init__.py", line 111, in
> > 
> > compare_versions return DpkgCompareVersions()(version1, version2)
> > 
> >   File "/usr/lib/python3/dist-packages/gbp/deb/__init__.py", line 66, in
> > 
> > __call__ res = self.call([version1, 'lt', version2])
> > 
> >   File "/usr/lib/python3/dist-packages/gbp/command_wrappers.py", line 237,
> > 
> > in call if ret and not quiet:
> > UnboundLocalError: local variable 'ret' referenced before assignment
> 
> This fails because I did `git tag upstream/1.11.0 v1.11.0` but that creates
> a tag pointing to a tag. Doing `git tag -m v1.11.0 upstream/1.11.0` fixes
> the above.

$ git tag upstream/1.11.0 `git rev-parse v1.11.0` 

sorry…

    OdyX

Reply via email to