Codebase list python-faraday / 64b3bf5
Add a patch to copy the images directory in the user directory (Closes: 3429) Sophie Brun 7 years ago
4 changed file(s) with 42 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 python-faraday (1.0.22-0kali2) kali-dev; urgency=medium
1
2 * Add a patch to copy the data/images directory in the user directory
3 (Closes: 3429)
4
5 -- Sophie Brun <[email protected]> Wed, 20 Jul 2016 12:06:05 +0200
6
07 python-faraday (1.0.22-0kali1) kali-dev; urgency=medium
18
29 * Import new upstream release
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
00 remove-unwanted-checks.diff
1 copy-images-directory.patch
0 #!/bin/sh
1
2 set -e
3
4 if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt 1.0.22-0kali2; then
5 rm -f /root/.faraday/config/config.xml
6 fi
7
8 #DEBHELPER#