|
0 |
Description: <short description, required>
|
|
1 |
<long description that can span multiple lines, optional>
|
|
2 |
Author: <name and email of author, optional>
|
|
3 |
Origin: <upstream|backport|vendor|other>, <URL, required except if Author is present>
|
|
4 |
Bug: <URL to the upstream bug report if any, implies patch has been forwarded, optional>
|
|
5 |
Bug-<Vendor>: <URL to the vendor bug report if any, optional>
|
|
6 |
Forwarded: <URL|no|not-needed, useless if you have a Bug field, optional>
|
|
7 |
Applied-Upstream: <version|URL|commit, identifies patches merged upstream, optional>
|
|
8 |
Reviewed-by: <name and email of a reviewer, optional>
|
|
9 |
Last-Update: <YYYY-MM-DD, last update of the meta-information, optional>
|
|
10 |
---
|
|
11 |
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
|
12 |
--- a/faraday.py
|
|
13 |
+++ b/faraday.py
|
|
14 |
@@ -367,6 +367,10 @@ def setupXMLConfig():
|
|
15 |
if not os.path.isfile(FARADAY_USER_CONFIG_XML):
|
|
16 |
logger.info("Copying default configuration from project.")
|
|
17 |
shutil.copy(FARADAY_BASE_CONFIG_XML, FARADAY_USER_CONFIG_XML)
|
|
18 |
+ imgdir = os.path.join(FARADAY_USER_HOME, 'images')
|
|
19 |
+ if os.path.isdir(imgdir):
|
|
20 |
+ shutil.rmtree(imgdir)
|
|
21 |
+ shutil.copytree(FARADAY_BASE_IMAGES, imgdir)
|
|
22 |
else:
|
|
23 |
logger.info("Using custom user configuration.")
|
|
24 |
|