summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwheatdog <wheatdoge@gmail.com>2019-02-28 22:37:24 +0800
committerwheatdog <wheatdoge@gmail.com>2019-02-28 22:37:24 +0800
commit698c0b0418b539dfd8144a406022d90a02b5dac9 (patch)
tree6ecc3c5affa379fd739f7c1ae64e77e1f67e3c52
parentb3f9f1c81b31ca08c1616035781fc07629f4fbe6 (diff)
downloadaurutils-extra-698c0b0418b539dfd8144a406022d90a02b5dac9.tar.gz
aurutils-extra-698c0b0418b539dfd8144a406022d90a02b5dac9.tar.zst
aurutils-extra-698c0b0418b539dfd8144a406022d90a02b5dac9.zip
Handle version dependency
-rwxr-xr-xaur-prunedep2
1 files changed, 2 insertions, 0 deletions
diff --git a/aur-prunedep b/aur-prunedep
index 8682e13..38e6d8a 100755
--- a/aur-prunedep
+++ b/aur-prunedep
@@ -1,5 +1,6 @@
#!/usr/bin/env python
+import re
import sys
import argparse
@@ -14,6 +15,7 @@ class PackageGraph:
line = line.strip()
elem = line.strip().split()
assert len(elem) == 4
+ elem[1] = re.split('>|=|<', elem[1])[0]
assert elem[0] == elem[2]
if elem[0] == elem[1]:
elem[1] = '{}*'.format(elem[1])