Skip to content

Commit

Permalink
Drop NETPLAN_VERSION not in spec for feature flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Trudel-Lapierre committed Aug 20, 2019
1 parent 2f282a0 commit 9ea105b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
NETPLAN_VERSION=2.98.1

BUILDFLAGS = \
-std=c99 \
-D_XOPEN_SOURCE=500 \
-DNETPLAN_VERSION='"$(NETPLAN_VERSION)"' \
-DSBINDIR=\"$(SBINDIR)\" \
-Wall \
-Werror \
Expand Down Expand Up @@ -45,7 +42,6 @@ src/_features.h: src/[^_]*.[hc]

netplan/_features.py: src/[^_]*.[hc]
echo "# Generated file" > $@
echo "NETPLAN_VERSION = \"$(NETPLAN_VERSION)\"" >> $@
echo "NETPLAN_FEATURE_FLAGS = [" >> $@
awk 'match ($$0, /netplan-feature:.*/ ) { $$0=substr($$0, RSTART, RLENGTH); print " \""$$2"\"," }' $^ >> $@
echo "]" >> $@
Expand Down
1 change: 0 additions & 1 deletion netplan/cli/commands/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def command_info(self):

netplan_version = {
'netplan.io': {
'version': netplan._features.NETPLAN_VERSION,
'website': 'https://netplan.io/',
}
}
Expand Down
4 changes: 0 additions & 4 deletions src/dbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ static int method_info(sd_bus_message *m, void *userdata, sd_bus_error *ret_erro
if (exit_status < 0)
return exit_status;

exit_status = sd_bus_message_append(reply, "(sv)", "Version", "s", NETPLAN_VERSION);
if (exit_status < 0)
return exit_status;

exit_status = sd_bus_message_open_container(reply, 'r', "sv");
if (exit_status < 0)
return exit_status;
Expand Down

0 comments on commit 9ea105b

Please sign in to comment.