File: do-not-assume-git-checkout.patch

package info (click to toggle)
tup 0.8-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,068 kB
  • sloc: ansic: 256,651; sh: 19,101; perl: 184; python: 67; lisp: 63; makefile: 56
file content (21 lines) | stat: -rw-r--r-- 671 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Dmitry Bogatov <KAction@gnu.org>
Date: Fri, 28 Sep 2018 22:44:52 +0300
Subject: Do not assume git checkout

Derive tup version (compiled into binary) from debian/changelog, not
state of git repository.
---
 src/tup/link.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/src/tup/link.sh
+++ b/src/tup/link.sh
@@ -13,7 +13,7 @@
 version=$7
 if [ "$version" = "" ]; then
 	# If we don't pass in a version, try to get one from git
-	version=`git describe 2>/dev/null || true`
+	version="$(dpkg-parsechangelog -SVersion) [debian]"
 	if [ "$version" = "" ]; then
 		# If we aren't using git, try to get one from the pathname (eg:
 		# for a tarball release