Get Vcs-Git from the source with the highest version
Balint Reczey
5 years ago
68 | 68 | mkdir -p build-area tarballs |
69 | 69 | # get original source, most likely for the original tarballs only |
70 | 70 | (cd build-area && apt-get source --download-only $src) |
71 | repo=$(apt-cache showsrc $src | grep -m 1 "^Vcs-Git:" | cut -d" " -f2) | |
71 | repo=$(apt-cache showsrc $src | grep "^Vcs-Git:" | tail -n 1 | cut -d" " -f2) | |
72 | 72 | if [ -n "$repo" ]; then |
73 | 73 | # start from the packaging dir |
74 | 74 | git clone $repo ${src}.git |