1
0
Fork 0

feat: fetch only the local repo

timestamps
dump_stack() 2023-05-26 12:56:18 +00:00
parent d9bfa63ed1
commit 1b87946130
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
1 changed files with 2 additions and 2 deletions

View File

@ -460,8 +460,8 @@ func (d Debian) Install(pkgname string, headers bool) (err error) {
// prepare local repository
cmdf("mkdir debs && mv *.deb debs/")
cmdf("dpkg-scanpackages debs /dev/null | gzip > debs/Packages.gz")
cmdf(`echo "deb file:$(pwd) debs/" >> /etc/apt/sources.list`)
cmdf("apt-get update")
cmdf(`echo "deb file:$(pwd) debs/" >> /etc/apt/sources.list.d/local.list`)
cmdf("apt-get update -o Dir::Etc::sourcelist='sources.list.d/local.list' -o Dir::Etc::sourceparts='-' -o APT::Get::List-Cleanup='0'")
// cut package names and install
cmdf("ls debs | grep deb | cut -d '_' -f 1 | " +