Fix installation of deb package path name containing colon
When installing a local .deb package using apt install ./path/to/package.deb, apt fails if the path contains a colon character (e.g., ./my:package.deb). This occurs because apt's URI parser interprets the colon as indicating a remote transport (such as ssh: or http:), even for paths that are clearly local.
This PR improves path detection logic to correctly treat paths containing colons as local files when they are given with a leading ./, /, or reside in the current working directory, preventing false-positive URI parsing and allowing successful installation of such packages.
Signed-off-by: Dongshengyuan dongshengyuan@uniontech.com
Edited by dong shengyuan