piuparts: replace apt repo from debian.sources to 0000elxr.list
the version of a package from debian.sources maybe higher than elxr:
debian.sources: libcpupower1 6.1.158-1
0000elxr.list: libcpupower1 6.1.153-elxr2-1
developing in local repo: libcpupower1 6.1.153-elxr3-1
the piuparts error for developing version:
$ apt install ./libcpupower-dev_6.1.153-elxr3-1_amd64.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'libcpupower-dev' instead of './libcpupower-dev_6.1.153-elxr3-1_amd64.deb'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libcpupower-dev : Depends: libcpupower1 (= 6.1.153-elxr3-1) but 6.1.158-1 is to be installed
E: Unable to correct problems, you have held broken packages.
apt install command searches the dependent package libcpupower1
from debian.sources. it is higher than developing version, and
throw the error.
if replace from debian.sources to 0000elxr.list, it is impossible
to find the higher version from 0000elxr.list. so apt will search
the local repo with 6.1.153-elxr3-1, and piuparts works well.
in fact, the piuparts pipeline of debian never develops a lower
verion than the latest version of debian.sources. so replacing
from debian.sources to 0000elxr.list will keep the same behavior
at elxr and debian development.