File: 03-initialdialog.dpatch

package info (click to toggle)
directoryassistant 2.0-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, squeeze
  • size: 116 kB
  • ctags: 60
  • sloc: python: 547; sh: 76; makefile: 57
file content (32 lines) | stat: -rw-r--r-- 1,350 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#! /bin/sh -e
## initialdialog.dpatch
## Gustavo Franco <stratus@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fix the images location on 'directoryassistant' script.

if [ $# -ne 1 ]; then
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
    exit 1
fi
case "$1" in
    -patch) patch -f --no-backup-if-mismatch -p0 < $0;;
    -unpatch) patch -f --no-backup-if-mismatch -R -p0 < $0;;
    *)  
        echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
        exit 1;;
esac

exit 0

--- directoryassistant	2005-12-22 23:27:08.000000000 -0200
+++ directoryassistant	2005-12-22 23:28:22.000000000 -0200
@@ -597,7 +597,7 @@
 		if (os.path.exists(filename)):
 			message = 'Your configfile '+filename+' does not contain\nboth the required fields ldapurl and basedn.'
 		else:
-			message = 'Your configfile '+filename+' did not yet exist, an empty config file is created, but you have to set the correct values.'
+			message = 'Your configfile '+filename+' did not yet exist,\n an empty config file is created, but you have to set the correct values.'
 			fd = open(filename, 'w')
 			fd.write("[main]\n#ldapurl = ldap://myserver/\n#bind_dn = cn=myaccount,o=myorg\n#bind_password = mysecret\n#base_dn = ou=Mydepartment,o=myorg\n#startup_search=myname")
 			fd.close()