Comment 32 for bug 509738

I try to build an old version of modemmanager the following way and fail:

$ bzr branch mm
$ cd mm
$ bzr revert -r 63
 M debian/changelog
 M debian/compat
 M debian/control
 M debian/copyright
 M debian/patches/series
 M debian/rules
$ bzr bd --merge --dont-purge --builder='debuild -uc -us -b'
Building using working tree
Running in merge mode
Looking for a way to retrieve the upstream tarball
Using apt to look for the upstream tarball.
apt could not find the needed tarball.
Trying to use get-orig-source to retrieve needed tarball.
set -e; tmpdir=`mktemp -d -t`; cd $tmpdir; echo "cloning upstream repository ..."; git clone git://; echo "getting specific upstream revision/tag: "master""; cd `ls | head -n 1`; git checkout -b orig "master"; commit_id=`git log -n1 --abbrev-commit | grep '^commit ' | sed -e 's/commit //'`; raw=`date --utc --date="$(git log --pretty=fuller -n1 --date=rfc | grep CommitDate: | sed -e 's/CommitDate:[^0-9]*//')" "+%Y%m%dt%H%M%S"`; if echo "master" | grep -c "orig" > /dev/null || echo 0.2.git.20091208t060758.07114d4-0ubuntu1 | grep -c "git" > /dev/null; then upstream_version=0.2.git.$raw.$commit_id; else upstream_version=0.2.git.20091208t060758.07114d4; fi; cd ..; tar --exclude=.git -czf /tmp/builddeb-get-orig-source-nT7a3v/export/modemmanager_$upstream_version.orig.tar.gz `ls | head -n 1`; cd /tmp/builddeb-get-orig-source-nT7a3v/export; rm -rf $tmpdir;
cloning upstream repository ...
Initialized empty Git repository in /tmp/tmp.hlc7MLgbIr/ModemManager/.git/
remote: Counting objects: 2279, done.
remote: Compressing objects: 100% (769/769), done.
remote: Total 2279 (delta 1742), reused 1928 (delta 1500)
Receiving objects: 100% (2279/2279), 602.56 KiB | 54 KiB/s, done.
Resolving deltas: 100% (1742/1742), done.
getting specific upstream revision/tag: master
Switched to a new branch 'orig'
get-orig-source did not create modemmanager_0.2.git.20091208t060758.07114d4.orig.tar.gz
No watch file to use to retrieve upstream tarball.
bzr: ERROR: Unable to find the needed upstream tarball: modemmanager_0.2.git.20091208t060758.07114d4.orig.tar.gz.