try fixing bin name resolve for millionth time
This commit is contained in:
parent
5c99ab4f92
commit
b31a6089e6
@ -4,7 +4,12 @@ import os, errno
|
||||
import json
|
||||
import subprocess
|
||||
|
||||
_APT_CONFIG_PIN="""Package:{PACKAGES}
|
||||
_APT_CONFIG_PIN="""
|
||||
Package: *
|
||||
Pin: release a=experimental
|
||||
Pin-Priority: 390
|
||||
|
||||
Package:{PACKAGES}
|
||||
Pin: release a=experimental
|
||||
Pin-Priority: 600
|
||||
"""
|
||||
@ -25,7 +30,7 @@ for file in srcnames_files:
|
||||
for line in file.readlines():
|
||||
srcname = line.strip()
|
||||
srcname_lines.append(srcname)
|
||||
result = subprocess.run([current_path + "/apt_experiments", '-n', srcname], stdout=subprocess.PIPE)
|
||||
result = subprocess.run([current_path + "/get-bin-name-from-src.sh', srcname], stdout=subprocess.PIPE)
|
||||
stdout = result.stdout.decode('utf-8')
|
||||
for line in stdout.splitlines():
|
||||
if line != "":
|
||||
|
@ -1,4 +1,6 @@
|
||||
#! /bin/bash
|
||||
echo -e "Package: *\nPin: release a=experimental\nPin-Priority: 600" > /etc/apt/preferences.d/0-pika-debian-settings
|
||||
chmod +x ./get-bin-name-from-src.sh
|
||||
chmod +x ./gen-apt-config.py
|
||||
apt-get update -y
|
||||
./gen-apt-config.py
|
2
get-bin-name-from-src.sh
Normal file
2
get-bin-name-from-src.sh
Normal file
@ -0,0 +1,2 @@
|
||||
#! /bin/bash
|
||||
sudo apt showsrc "$1" | grep -E "^Binary:" | cut -d":" -f2- | sed 's/\,/\n/g' | sed 's/\ /\n/g' | sed '/^$/d'
|
Loading…
Reference in New Issue
Block a user