ppa2pup overwrites main repos if either the tor or node.js repositories are in sources.list
The issue here is that we are identifying the repos based purely on the "distro_ver" and "stream". Many project specific repos (e.g. the tor and node.js repo)s might have the same distro_ver and stream as the main repos. The solution is to also use the URL as part of our filter criteria in:
# check if this repo is already installed (find its name in Pkg sources files)
PPA_NAME="$(grep -m1 "^${distro_ver}-${stream:-main}|" /root/.pkg/sources-all | cut -f1 -d'|' 2>/dev/null)"
/sc0ttj/Pkg/blob/master/usr/sbin/ppa2pup#L168
I'll propose some moified code :)
P.S. The repos will only be overwitten if the distro_ver and stream match an existing entry. It is possible (e.g. in the case of tor or node.js) that these project specific repositories are merged into the main distribution repo. However, we should have the option of separately adding the repository repos, in case the main repos are out of date.
Edited by s243a