diff options
author | Papoteur <papoteur@mageialinux-online.org> | 2015-12-19 15:24:35 +0100 |
---|---|---|
committer | Papoteur <papoteur@mageialinux-online.org> | 2015-12-19 15:24:35 +0100 |
commit | 896ffa4fce70192ae87bd1ff412408520cc27dd7 (patch) | |
tree | 34a53fa95dc6b4921a7f5a4f572b395203ccbf8e /MgaRepo | |
parent | 82af6515b683e884e6c2581f4171938fe5c9bba2 (diff) | |
download | mgarepo-896ffa4fce70192ae87bd1ff412408520cc27dd7.tar mgarepo-896ffa4fce70192ae87bd1ff412408520cc27dd7.tar.gz mgarepo-896ffa4fce70192ae87bd1ff412408520cc27dd7.tar.bz2 mgarepo-896ffa4fce70192ae87bd1ff412408520cc27dd7.tar.xz mgarepo-896ffa4fce70192ae87bd1ff412408520cc27dd7.zip |
Add condition for cp command if no SOURCES is present.
Diffstat (limited to 'MgaRepo')
-rw-r--r-- | MgaRepo/rpmutil.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/MgaRepo/rpmutil.py b/MgaRepo/rpmutil.py index fff505b..0b127d8 100644 --- a/MgaRepo/rpmutil.py +++ b/MgaRepo/rpmutil.py @@ -251,7 +251,8 @@ def put_srpm(srpmfile, markrelease=False, striplog=True, branch=None, # Copy all files execcmd("cp -rlf", uspecsdir, currentdir) - execcmd("cp -rlf", usourcesdir, currentdir) + if os.path.isdir(usourcesdir): + execcmd("cp -rlf", usourcesdir, currentdir) # Add new entries for entry in [x for x in uspecsentries |