mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-09 03:38:05 +02:00
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:
parent
9852851db1
commit
0ff7b4fdff
2 changed files with 2 additions and 2 deletions
|
|
@ -175,7 +175,7 @@ $(dbusconf_DATA): $(dbusconf_in_files) Makefile
|
||||||
|
|
||||||
install-data-hook:
|
install-data-hook:
|
||||||
if test -w $(DESTDIR)$(prefix)/; then \
|
if test -w $(DESTDIR)$(prefix)/; then \
|
||||||
mkdir -p $(DESTDIR)$(localstatedir)/lib/DeviceKit-power; \
|
mkdir -p $(DESTDIR)$(localstatedir)/lib/upower; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
install-exec-hook:
|
install-exec-hook:
|
||||||
|
|
|
||||||
|
|
@ -382,7 +382,7 @@ up_history_get_filename (UpHistory *history, const gchar *type)
|
||||||
gchar *filename;
|
gchar *filename;
|
||||||
|
|
||||||
filename = g_strdup_printf ("history-%s-%s.dat", type, history->priv->id);
|
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);
|
g_free (filename);
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue