Compare commits

...

2 Commits

2 changed files with 7 additions and 1 deletions

View File

@ -59,6 +59,7 @@ sed -i "s|^Vendor:.*|Vendor: openmamba|;
/^BuildRequires:[[:space:]]*libkdegames5-devel/d; /^BuildRequires:[[:space:]]*libkdegames5-devel/d;
/^BuildRequires:[[:space:]]*python3.7dist/d; /^BuildRequires:[[:space:]]*python3.7dist/d;
/^BuildRoot:[[:space:]]*.*/d; /^BuildRoot:[[:space:]]*.*/d;
\,%post.* -p /sbin/ldconfig$,d;
s|\(BuildRequires:[[:space:]]*\)libmysql-devel|\1libmysql5-devel|; s|\(BuildRequires:[[:space:]]*\)libmysql-devel|\1libmysql5-devel|;
s|\(BuildRequires:[[:space:]]*\)libdb42-devel|\1libdb47-devel|; s|\(BuildRequires:[[:space:]]*\)libdb42-devel|\1libdb47-devel|;
s|\(BuildRequires:[[:space:]]*\)libdb51-devel|\1libdb53-devel|; s|\(BuildRequires:[[:space:]]*\)libdb51-devel|\1libdb53-devel|;

View File

@ -30,7 +30,12 @@ while True:
requrl += from_package +"/" requrl += from_package +"/"
requrl += "?inrepo=openmamba&outdated=1" requrl += "?inrepo=openmamba&outdated=1"
sys.stderr.write("Requesting: " + requrl + "\n") sys.stderr.write("Requesting: " + requrl + "\n")
url = urllib.request.urlopen(requrl) req = urllib.request.Request(
requrl,
data=None,
headers={'User-Agent': 'autodist/1.5.3 (Linux; openmamba; reports@openmamba.org)'}
)
url = urllib.request.urlopen(req)
#print(requrl) #print(requrl)
data = json.loads(url.read().decode()) data = json.loads(url.read().decode())