Skip to content

Commit

Permalink
ns-phonehome: fixed version parsing
Browse files Browse the repository at this point in the history
Signed-off-by: Tommaso Bailetti <[email protected]>
  • Loading branch information
Tbaile committed May 27, 2024
1 parent acab29d commit 0d3af33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/ns-phonehome/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=ns-phonehome
PKG_VERSION:=0.0.5
PKG_VERSION:=0.0.6
PKG_RELEASE:=1

PKG_BUILD_DIR:=$(BUILD_DIR)/ns-phonehome-$(PKG_VERSION)
Expand Down
2 changes: 1 addition & 1 deletion packages/ns-phonehome/files/phonehome
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ version = ""
with open('/etc/os-release', 'r') as file:
for line in file:
if line.startswith("VERSION_ID="):
nethsec_version = line.split('=')[1].split('-')[2][3:]
nethsec_version = line.split('=')[1].split('-')[2][3:].replace('"','').rstrip()
version = line.split('=')[1].replace('"','').rstrip()
break

Expand Down

0 comments on commit 0d3af33

Please sign in to comment.