Skip to content

Commit

Permalink
download_centos.py: do not try to create directory if exists
Browse files Browse the repository at this point in the history
  • Loading branch information
stormi committed Jun 4, 2019
1 parent dd46e3f commit 70110a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/download_centos.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ def main():
rpmdir = os.path.abspath(args.rpmdir)
srpmdir = os.path.abspath(args.srpmdir)
downloaddir = os.path.abspath(args.downloaddir)
os.makedirs(downloaddir)
if not os.path.isdir(downloaddir):
os.makedirs(downloaddir)

local_centos = None
local_epel = None
Expand Down

0 comments on commit 70110a3

Please sign in to comment.