forked from importers/git-importer
Move modules into lib subdir
This commit is contained in:
parent
88322fffae
commit
a82562b794
@ -8,7 +8,7 @@ import sys
|
|||||||
|
|
||||||
import osc.core
|
import osc.core
|
||||||
|
|
||||||
from importer import Importer
|
from lib.importer import Importer
|
||||||
|
|
||||||
URL_OBS = "https://api.opensuse.org"
|
URL_OBS = "https://api.opensuse.org"
|
||||||
URL_IBS = "https://api.suse.de"
|
URL_IBS = "https://api.suse.de"
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
import pathlib
|
|
||||||
import pygit2
|
|
||||||
import logging
|
|
||||||
import subprocess
|
|
||||||
import fnmatch
|
import fnmatch
|
||||||
|
import logging
|
||||||
|
import pathlib
|
||||||
|
import subprocess
|
||||||
|
|
||||||
from binary import BINARY
|
import pygit2
|
||||||
|
|
||||||
|
from lib.binary import BINARY
|
||||||
|
|
||||||
LFS_SUFFIX = "filter=lfs diff=lfs merge=lfs -text"
|
LFS_SUFFIX = "filter=lfs diff=lfs merge=lfs -text"
|
||||||
|
|
@ -1,8 +1,8 @@
|
|||||||
import re
|
|
||||||
import logging
|
|
||||||
import itertools
|
import itertools
|
||||||
|
import logging
|
||||||
|
import re
|
||||||
|
|
||||||
from revision import Revision
|
from lib.revision import Revision
|
||||||
|
|
||||||
|
|
||||||
class History:
|
class History:
|
@ -1,11 +1,11 @@
|
|||||||
import functools
|
import functools
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from git import Git
|
from lib.binary import is_binary_or_large
|
||||||
from history import History
|
from lib.git import Git
|
||||||
from binary import is_binary_or_large
|
from lib.history import History
|
||||||
from proxy_sha256 import ProxySHA256, md5, sha256
|
from lib.obs import OBS
|
||||||
from obs import OBS
|
from lib.proxy_sha256 import ProxySHA256, md5, sha256
|
||||||
|
|
||||||
|
|
||||||
def _files_hash(hash_alg, dirpath):
|
def _files_hash(hash_alg, dirpath):
|
@ -1,12 +1,14 @@
|
|||||||
import osc.core
|
|
||||||
import xml.etree.ElementTree as ET
|
|
||||||
import logging
|
|
||||||
import urllib.parse
|
|
||||||
from urllib.error import HTTPError
|
|
||||||
import time
|
|
||||||
import errno
|
import errno
|
||||||
|
import logging
|
||||||
|
import time
|
||||||
|
import urllib.parse
|
||||||
|
import xml.etree.ElementTree as ET
|
||||||
|
from urllib.error import HTTPError
|
||||||
|
|
||||||
|
import osc.core
|
||||||
|
|
||||||
|
from lib.request import Request
|
||||||
|
|
||||||
from request import Request
|
|
||||||
|
|
||||||
# Add a retry wrapper for some of the HTTP actions.
|
# Add a retry wrapper for some of the HTTP actions.
|
||||||
def retry(func):
|
def retry(func):
|
@ -1,8 +1,9 @@
|
|||||||
import logging
|
|
||||||
import requests
|
|
||||||
import urllib
|
|
||||||
import functools
|
import functools
|
||||||
import hashlib
|
import hashlib
|
||||||
|
import logging
|
||||||
|
import urllib
|
||||||
|
|
||||||
|
import requests
|
||||||
|
|
||||||
|
|
||||||
def _hash(hash_alg, file_or_path):
|
def _hash(hash_alg, file_or_path):
|
@ -1,8 +1,8 @@
|
|||||||
import datetime
|
import datetime
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
from urllib.error import HTTPError
|
|
||||||
import xml.etree.ElementTree as ET
|
import xml.etree.ElementTree as ET
|
||||||
|
from urllib.error import HTTPError
|
||||||
|
|
||||||
|
|
||||||
class Revision:
|
class Revision:
|
Loading…
Reference in New Issue
Block a user