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:
parent
11845654ac
commit
a08e80472b
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user