mirror of
https://github.com/gryf/wicd.git
synced 2025-12-19 12:28:08 +01:00
add .empty_on_purpose to empty directories
This commit is contained in:
9
other/.empty_on_purpose
Normal file
9
other/.empty_on_purpose
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
If you're reading this file, that means that you found a directory that
|
||||||
|
is empty by default when Wicd is installed. Congratulations!
|
||||||
|
|
||||||
|
At this point, the directory probably isn't empty, so perhaps the name
|
||||||
|
of this file is a little confusing.
|
||||||
|
|
||||||
|
Some package managers and some version control systems don't allow for
|
||||||
|
installation or storage of empty directories, so this file exists to
|
||||||
|
make them work properly. Just ignore it and continue on with your life.
|
||||||
18
setup.py
18
setup.py
@@ -485,24 +485,28 @@ py_modules=['wicd.networking','wicd.misc','wicd.wnettools',
|
|||||||
'wicd.logfile','wicd.backend','wicd.configmanager',
|
'wicd.logfile','wicd.backend','wicd.configmanager',
|
||||||
'wicd.translations']
|
'wicd.translations']
|
||||||
|
|
||||||
|
# path to the file to put in empty directories
|
||||||
|
# fixes https://bugs.launchpad.net/wicd/+bug/503028
|
||||||
|
empty_file = 'other/.empty_on_purpose'
|
||||||
|
|
||||||
try:
|
try:
|
||||||
print "Using init file",(wpath.init, wpath.initfile)
|
print "Using init file",(wpath.init, wpath.initfile)
|
||||||
data = [
|
data = [
|
||||||
(wpath.dbus, ['other/wicd.conf']),
|
(wpath.dbus, ['other/wicd.conf']),
|
||||||
(wpath.log, []),
|
(wpath.log, [empty_file]),
|
||||||
(wpath.etc, ['other/dhclient.conf.template.default']),
|
(wpath.etc, ['other/dhclient.conf.template.default']),
|
||||||
(wpath.encryption, [('encryption/templates/' + b) for b in
|
(wpath.encryption, [('encryption/templates/' + b) for b in
|
||||||
os.listdir('encryption/templates') if not b.startswith('.')]),
|
os.listdir('encryption/templates') if not b.startswith('.')]),
|
||||||
(wpath.networks, []),
|
(wpath.networks, [empty_file]),
|
||||||
(wpath.sbin, ['scripts/wicd']),
|
(wpath.sbin, ['scripts/wicd']),
|
||||||
(wpath.daemon, ['wicd/monitor.py', 'wicd/wicd-daemon.py',
|
(wpath.daemon, ['wicd/monitor.py', 'wicd/wicd-daemon.py',
|
||||||
'wicd/suspend.py', 'wicd/autoconnect.py']),
|
'wicd/suspend.py', 'wicd/autoconnect.py']),
|
||||||
(wpath.backends, ['wicd/backends/be-external.py', 'wicd/backends/be-ioctl.py']),
|
(wpath.backends, ['wicd/backends/be-external.py', 'wicd/backends/be-ioctl.py']),
|
||||||
(wpath.scripts, []),
|
(wpath.scripts, [empty_file]),
|
||||||
(wpath.predisconnectscripts, []),
|
(wpath.predisconnectscripts, [empty_file]),
|
||||||
(wpath.postdisconnectscripts, []),
|
(wpath.postdisconnectscripts, [empty_file]),
|
||||||
(wpath.preconnectscripts, []),
|
(wpath.preconnectscripts, [empty_file]),
|
||||||
(wpath.postconnectscripts, []),
|
(wpath.postconnectscripts, [empty_file]),
|
||||||
]
|
]
|
||||||
if not wpath.no_install_gtk:
|
if not wpath.no_install_gtk:
|
||||||
data.append((wpath.desktop, ['other/wicd.desktop']))
|
data.append((wpath.desktop, ['other/wicd.desktop']))
|
||||||
|
|||||||
Reference in New Issue
Block a user