Commit 9bbbd665 authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

aurblup: Strip version suffixes from provisions

Since we cannot handle versioned provides, simply strip the version
suffix and treat them as if they were not versioned.

Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <>
parent 66d12f0c
......@@ -4,6 +4,7 @@ import configparser
import mysql.connector
import os
import pyalpm
import re
config = configparser.RawConfigParser() + "/../conf/config")
......@@ -32,7 +33,9 @@ for sync_db in sync_dbs:
[blacklist.add(x) for x in pkg.replaces]
[providers.add((, x)) for x in pkg.provides]
for provision in pkg.provides:
provisionname = re.sub(r'(<|=|>).*', '', provision)
providers.add((, provisionname))
db = mysql.connector.connect(host=aur_db_host, user=aur_db_user,
passwd=aur_db_pass, db=aur_db_name,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment