1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 17:26:15 +02:00

- fixed import

This commit is contained in:
Marcus Huewe 2010-07-13 12:13:25 +02:00
parent 34174e301e
commit faad8ca0c1

View File

@ -8,8 +8,8 @@
import os
import re
import sys
import shutil
from tempfile import NamedTemporaryFile, mkdtemp
from shutil import rmtree
from osc.fetch import *
from osc.core import get_buildinfo, store_read_apiurl, store_read_project, store_read_package, meta_exists, quote_plus, get_buildconfig, is_package_dir
from osc.core import get_binarylist, get_binary_file
@ -683,7 +683,7 @@ def main(apiurl, opts, argv):
def __init__(self, *args, **kwargs):
self.name = mkdtemp(*args, **kwargs)
def cleanup(self):
rmtree(self.name)
shutil.rmtree(self.name)
def __del__(self):
self.cleanup()
def __exit__(self):
@ -718,7 +718,7 @@ def main(apiurl, opts, argv):
if not os.path.exists('repos'):
os.mkdir('repos')
else:
rmtree('repos')
shutil.rmtree('repos')
os.mkdir('repos')
for i in bi.deps:
# project