1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-26 14:46:14 +01:00

handle error if packagecachedir is not writable by user

This commit is contained in:
Dr. Peter Poeml 2006-07-14 18:23:20 +00:00
parent 11845654ac
commit a08e80472b

View File

@ -85,7 +85,12 @@ class Fetcher:
def dirSetup(self, pac):
dir = os.path.join(self.cachedir, pac.localdir)
if not os.path.exists(dir):
os.makedirs(dir, mode=0755)
try:
os.makedirs(dir, mode=0755)
except OSError, e:
print 'packagecachedir is not writable for you?'
print e
sys.exit(1)
def run(self, buildinfo):