Skip to content

Instantly share code, notes, and snippets.

View mizdebsk's full-sized avatar

Mikolaj Izdebski mizdebsk

View GitHub Profile
#!/usr/bin/python3
import itertools
import solv
REL_MAP = {
">": solv.REL_GT,
"=": solv.REL_EQ,
">=": solv.REL_GT | solv.REL_EQ,
#!/usr/bin/python
# Print dependency tree for buildroot
# Author: Mikolaj Izdebski <mizdebsk@redhat.com>
import dnf.sack
import dnf.subject
import hawkey
import koji
import librepo
import os
# Path where to copy artifacts, you can change it to ~/.m2/repository
repo_path = "/tmp/myrepo"
# List of artifacts to copy
coords = ["junit:junit:4.11",
"org.sonatype.sisu:sisu-guice::no_aop:3.2.5",
"org.apache.commons:commons-lang:1.2.3"]
import os
import re
import shutil