ros-infrastructure/bloom — pull request #160 by wjwwood (2013-06-25 18:03:21+00:00)
Title: git-bloom-release: failing for freenect_stack

Running bloom 0.4.0 on Precise. Trying to make a Hydro 0.2.2 release of [freenect_stack-release](https://github.com/ros-drivers-gbp/freenect_stack-release.git).

Unfortunately, I did not commit the hydro track definition before running git-bloom-release. Now I am afraid to push any changes. Is it safe to commit just the master update?

````
$ git-bloom-config show hydro
hydro:
actions:
- bloom-export-upstream :{vcs_local_uri} :{vcs_type} --tag :{release_tag} --display-uri
:{vcs_uri} --name :{name} --output-dir :{archive_dir_path}
- git-bloom-import-upstream :{archive_path} :{patches} --release-version :{version}
--replace
- git-bloom-generate -y rosrelease :{ros_distro} --source upstream -i :{release_inc}
- git-bloom-generate -y rosdebian --prefix release/:{ros_distro} :{ros_distro} -i
:{release_inc}
devel_branch: master
name: freenect_stack
patches: null
release_inc: -1
release_repo_url: git@github.com:ros-drivers/freenect_stack.git
release_tag: freenect_stack-:{version}
ros_distro: hydro
vcs_type: git
vcs_uri: https://github.com/ros-drivers/freenect_stack.git
version: :{auto}

$ git-bloom-release hydro
Processing release track settings for 'hydro'
Checking upstream devel branch for package.xml(s)
Cloning into '/tmp/tmpiOccX5/upstream'...
remote: Counting objects: 637, done.
remote: Compressing objects: 100% (248/248), done.
remote: Total 637 (delta 303), reused 631 (delta 298)
Receiving objects: 100% (637/637), 105.90 KiB, done.
Resolving deltas: 100% (303/303), done.
Looking for packages in 'master' branch... found 3 packages.
Detected version '0.2.2' from package(s): ['freenect_stack', 'freenect_camera', 'freenect_launch']

Executing release track 'hydro'
==> bloom-export-upstream /tmp/tmpiOccX5/upstream git --tag freenect_stack-0.2.2 --display-uri https://github.com/ros-drivers/freenect_stack.git --name freenect_stack --output-dir /tmp/tmpm2H82Y
Checking out repository at 'https://github.com/ros-drivers/freenect_stack.git' to reference 'freenect_stack-0.2.2'.
Exporting to archive: '/tmp/tmpm2H82Y/freenect_stack-freenect_stack-0.2.2.tar.gz'
md5: 1e94009ccea8ba2275f1f31309a12c69

==> git-bloom-import-upstream /tmp/tmpm2H82Y/freenect_stack-freenect_stack-0.2.2.tar.gz --release-version 0.2.2 --replace
Skipping transactional safety mechanism, be careful...
The latest upstream tag in the release repository is 'upstream/0.2.1'.
Importing archive into upstream branch...
Creating tag: 'upstream/0.2.2'
I'm happy. You should be too.

==> git-bloom-generate -y rosrelease hydro --source upstream -i 0
Skipping transactional safety mechanism, be careful...
Releasing packages: ['freenect_stack', 'freenect_camera', 'freenect_launch']
Releasing package 'freenect_stack' for 'hydro' to: 'release/hydro/freenect_stack'
Releasing package 'freenect_camera' for 'hydro' to: 'release/hydro/freenect_camera'
Releasing package 'freenect_launch' for 'hydro' to: 'release/hydro/freenect_launch'

==> git-bloom-generate -y rosdebian --prefix release/hydro hydro -i 0
Skipping transactional safety mechanism, be careful...
Generating source debs for the packages: ['freenect_launch', 'freenect_stack', 'freenect_camera']
Debian Incremental Version: 0
Debian Distributions: ['precise', 'quantal', 'raring']
Releasing for rosdistro: hydro
Placing debian template files into 'debian/hydro/freenect_launch' branch.
==> Placing templates files in the 'debian' folder.
Running 'rosdep update'...

####
#### Generating 'precise' debian for package 'freenect_launch' at version '0.2.2-0'
####
Generating debian for precise...
Traceback (most recent call last):
File "/usr/bin/git-bloom-generate", line 9, in
load_entry_point('bloom==0.4.0', 'console_scripts', 'git-bloom-generate')()
File "/usr/lib/pymodules/python2.7/bloom/commands/git/generate.py", line 247, in main
run_generator(generator, args)
File "/usr/lib/pymodules/python2.7/bloom/commands/git/generate.py", line 162, in run_generator
gen.post_rebase, destination)
File "/usr/lib/pymodules/python2.7/bloom/commands/git/generate.py", line 101, in try_execute
retcode = func(*args, **kwargs)
File "/usr/lib/pymodules/python2.7/bloom/generators/debian/generator.py", line 484, in post_rebase
data = self.generate_debian(package, distro)
File "/usr/lib/pymodules/python2.7/bloom/generators/debian/generator.py", line 603, in generate_debian
subs = self.get_subs(package, debian_distro, releaser_history)
File "/usr/lib/pymodules/python2.7/bloom/generators/rosdebian.py", line 42, in get_subs
releaser_history=releaser_history
File "/usr/lib/pymodules/python2.7/bloom/generators/debian/generator.py", line 251, in generate_substitutions_from_package
peer_packages)
File "/usr/lib/pymodules/python2.7/bloom/generators/common.py", line 160, in resolve_dependencies
resolved_key = fallback_resolver(key, peer_packages)
File "/usr/lib/pymodules/python2.7/bloom/generators/common.py", line 139, in default_fallback_resolver
.format(key))
File "/usr/lib/pymodules/python2.7/bloom/generators/common.py", line 181, in exit
raise GeneratorError(retcode)
GeneratorError: Error running generator: Failed to resolve rosdep key 'freenect_camera', aborting.

<== Error running command '['/usr/bin/git-bloom-generate', '-y', 'rosdebian', '--prefix', 'release/hydro', 'hydro', '-i', '0']'
````