File: 0002-Always-use-the-Debian-version-number.patch

package info (click to toggle)
lastpass-cli 1.6.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 912 kB
  • sloc: ansic: 10,203; sh: 683; makefile: 45
file content (21 lines) | stat: -rw-r--r-- 702 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Chris Lamb <lamby@debian.org>
Date: Tue, 5 Sep 2023 10:05:21 -0700
Subject: Always use the Debian version number.

Forwarded: not-needed
---
 LASTPASS-VERSION-GEN | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/LASTPASS-VERSION-GEN b/LASTPASS-VERSION-GEN
index c7c375c..8f12a7a 100755
--- a/LASTPASS-VERSION-GEN
+++ b/LASTPASS-VERSION-GEN
@@ -1,4 +1,7 @@
 #!/bin/sh
+echo "#define LASTPASS_CLI_VERSION \"$(dpkg-parsechangelog -SVersion)\"" > version.h
+echo "#define LASTPASS_CLI_USERAGENT \"LastPass-CLI/\" LASTPASS_CLI_VERSION" >> version.h
+exit
 
 # This file has been adopted from the git project
 # You can find the original at https://github.com/git/git/blob/master/GIT-VERSION-GEN