summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-12-08 08:33:31 +0100
committerChristian Breunig <christian@breunig.cc>2024-12-16 22:21:36 +0100
commit328f354677a4fd2f60b95473698816e99aaa20a7 (patch)
tree71a58a452ae655b65bc2c61361bdc96adf7f0a38 /debian
parent4f93cfbc6e66c9a8312bebee1b54d03021ec2072 (diff)
downloadvyos-1x-328f354677a4fd2f60b95473698816e99aaa20a7.tar.gz
vyos-1x-328f354677a4fd2f60b95473698816e99aaa20a7.zip
frr: T6747: remove superfluous newlines from rendered templates
Drop newlines added by macro statement and Jinja2 comments. Jinja2 comments will be removed during package build on the shipped files.
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/rules2
1 files changed, 2 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index c15fcab11..d7c427b0d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -94,6 +94,8 @@ override_dh_auto_install:
cp -r data/reftree.cache $(DIR)/$(VYCONF_CONFIG_DIR)
mkdir -p $(DIR)/$(VYOS_DATA_DIR)
cp -r data/* $(DIR)/$(VYOS_DATA_DIR)
+ # Remove j2lint comments / linter configuration which would insert additional new-lines
+ find $(DIR)/$(VYOS_DATA_DIR) -name "*.j2" -type f | xargs sed -i -e '/^{#.*#}/d'
# Create localui dir
mkdir -p $(DIR)/$(VYOS_LOCALUI_DIR)