Move the history files to /var/lib/upower

Distros should move existing files from
/var/lib/DeviceKit-power to /var/lib/upower on upgrades in their
maintainer scripts.
This commit is contained in:
Michael Biebl 2010-02-05 05:11:57 +01:00 committed by Richard Hughes
parent 9852851db1
commit 0ff7b4fdff
2 changed files with 2 additions and 2 deletions

View file

@ -175,7 +175,7 @@ $(dbusconf_DATA): $(dbusconf_in_files) Makefile
install-data-hook:
if test -w $(DESTDIR)$(prefix)/; then \
mkdir -p $(DESTDIR)$(localstatedir)/lib/DeviceKit-power; \
mkdir -p $(DESTDIR)$(localstatedir)/lib/upower; \
fi
install-exec-hook:

View file

@ -382,7 +382,7 @@ up_history_get_filename (UpHistory *history, const gchar *type)
gchar *filename;
filename = g_strdup_printf ("history-%s-%s.dat", type, history->priv->id);
path = g_build_filename (PACKAGE_LOCALSTATE_DIR, "lib", "DeviceKit-power", filename, NULL);
path = g_build_filename (PACKAGE_LOCALSTATE_DIR, "lib", "upower", filename, NULL);
g_free (filename);
return path;
}