Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/chat/gajim Make devel/gajim not pick up the pkgsrc rev...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4d93c73541ed
branches:  trunk
changeset: 436385:4d93c73541ed
user:      js <js%pkgsrc.org@localhost>
date:      Sat Aug 01 12:40:10 2020 +0000

description:
Make devel/gajim not pick up the pkgsrc revision when pkgsrc is checked out via
Git.

diffstat:

 chat/gajim/distinfo                        |   3 ++-
 chat/gajim/patches/patch-gajim___init__.py |  19 +++++++++++++++++++
 2 files changed, 21 insertions(+), 1 deletions(-)

diffs (36 lines):

diff -r 3425ffc701db -r 4d93c73541ed chat/gajim/distinfo
--- a/chat/gajim/distinfo       Sat Aug 01 09:52:51 2020 +0000
+++ b/chat/gajim/distinfo       Sat Aug 01 12:40:10 2020 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.12 2020/07/08 11:57:12 adam Exp $
+$NetBSD: distinfo,v 1.13 2020/08/01 12:40:10 js Exp $
 
 SHA1 (gajim-1.2.0.tar.gz) = 68bf6d24c45394c288a8229b8d8aa50e74db45ec
 RMD160 (gajim-1.2.0.tar.gz) = d1484f11ca8707378c7a0dc1f4e02e21e9fde272
 SHA512 (gajim-1.2.0.tar.gz) = e73802dd1172c1fa38be10e6fb5d605109dacf0491516b15111ccd05389309af217e8af68440a1333b8a636c9ff425dec6d4461296ba47f1bb6dbb3000b02fd0
 Size (gajim-1.2.0.tar.gz) = 9605006 bytes
+SHA1 (patch-gajim___init__.py) = cc51df849cf55cb3023464f67958151a89e95a0c
 SHA1 (patch-setup.py) = f8fd2bb45d0ced7c86972218e1a0194ad35127b8
diff -r 3425ffc701db -r 4d93c73541ed chat/gajim/patches/patch-gajim___init__.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/gajim/patches/patch-gajim___init__.py        Sat Aug 01 12:40:10 2020 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-gajim___init__.py,v 1.1 2020/08/01 12:40:10 js Exp $
+
+Make Gajim not pick up the pkgsrc revision when pkgsrc is checked out via Git.
+
+--- gajim/__init__.py.orig     2020-08-01 12:32:50.000000000 +0000
++++ gajim/__init__.py
+@@ -11,12 +11,3 @@ IS_PORTABLE = False
+ portable_path = os.path.join(os.getcwd(), 'is_portable')
+ if os.path.exists(portable_path):
+     IS_PORTABLE = True
+-
+-try:
+-    p = subprocess.Popen('git rev-parse --short=12 HEAD', shell=True,
+-                         stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)
+-    node = p.communicate()[0]
+-    if node:
+-        __version__ += '+' + node.decode('utf-8').strip()
+-except Exception:
+-    pass



Home | Main Index | Thread Index | Old Index