ros-infrastructure/ros_buildfarm — pull request #2 by tfoote (2014-11-17 08:15:11+00:00)
Title: call apt-get update before apt-get source, otherwise it will hash sum mismatch

if a sourcedeb was retriggered since caching

This will avoid errors like this:

```
Traceback (most recent call last):
File "/tmp/ros_buildfarm/scripts/release/get_sourcedeb.py", line 30, in
sys.exit(main())
File "/tmp/ros_buildfarm/scripts/release/get_sourcedeb.py", line 26, in main
args.skip_download_sourcedeb)
File "/tmp/ros_buildfarm/ros_buildfarm/binarydeb_job.py", line 23, in get_sourcedeb
subprocess.check_call(cmd, cwd=sourcedeb_dir)
File "/usr/lib/python3.4/subprocess.py", line 557, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['apt-get', 'source', 'ros-indigo-catkin', '--download-only']' returned non-zero exit status 100
```

This will also fail for newly uploaded sourcedebs as you will get the older cached version.

```
Invoking 'apt-get source ros-indigo-genmsg --download-only' Reading package lists... Building dependency tree... Reading state information... E: Unable to find a source package for ros-indigo-genmsg # END SUBSECTION
Traceback (most recent call last):
File "/tmp/ros_buildfarm/scripts/release/get_sourcedeb.py", line 30, in
sys.exit(main())
File "/tmp/ros_buildfarm/scripts/release/get_sourcedeb.py", line 26, in main
args.skip_download_sourcedeb)
File "/tmp/ros_buildfarm/ros_buildfarm/binarydeb_job.py", line 23, in get_sourcedeb
subprocess.check_call(cmd, cwd=sourcedeb_dir)
File "/usr/lib/python3.4/subprocess.py", line 557, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['apt-get', 'source', 'ros-indigo-genmsg', '--download-only']' returned non-zero exit status 100

```