File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1095,7 +1095,6 @@ def parse_package_name(pkg):
10951095
10961096
10971097def get_host_gateways ():
1098- default_gw_labels = ('default' , '0.0.0.0' , '::/' )
10991098 gateways = {'ipv4' : {'gateway' : None , 'interface' : None },
11001099 'ipv6' : {'gateway' : None , 'interface' : None }}
11011100 af_mapping = {
@@ -1117,7 +1116,7 @@ def get_host_gateways():
11171116 pass
11181117 else :
11191118 default_route = list (filter (
1120- lambda x : x ['destination' ] in default_gw_labels , route_entries )
1119+ lambda x : x ['destination' ] == 'default' , route_entries )
11211120 )
11221121 if default_route and 'gateway' in default_route [0 ]:
11231122 gateways [af_mapping [af ]]['gateway' ] = \
Original file line number Diff line number Diff line change 3030
3131if os .path .isdir ("/" .join ([sys .prefix , "etc/init.d" ])):
3232 _data = [('etc/init.d' , ['rc.d/iocage' ]),
33- ('share/man/man8' , ['iocage.8.gz ' ])]
33+ ('share/man/man8' , ['iocage.8' ])]
3434else :
3535 _data = [('etc/rc.d' , ['rc.d/iocage' ]),
36- ('share/man/man8' , ['iocage.8.gz ' ])]
36+ ('share/man/man8' , ['iocage.8' ])]
3737
3838if os .path .isdir ("/" .join ([sys .prefix , "share/zsh/site-functions/" ])):
3939 _data .append (('share/zsh/site-functions' , ['zsh-completion/_iocage' ]))
You can’t perform that action at this time.
0 commit comments