Commit 8ad05b3
committed
scripts: fix hop count detection for DEB822 sources with ports
The get-distro-has-hop-count-sources.sh script was failing when DEB822
format sources contained URLs with port numbers (e.g.,
eqpv-artifact.dtc.local:8081). The traceroute command requires just the
hostname without the port.
Fix by stripping the port number from the hostname using cut -d':' -f1
after extracting the domain from the URL. This ensures traceroute
receives a valid hostname regardless of whether the sources URL includes
a port specification.
Generated-by: Claude AI
Signed-off-by: Luis Chamberlain <[email protected]>1 parent 6adeca5 commit 8ad05b3
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
0 commit comments