ACCC1380 commited on
Commit
0ea584a
1 Parent(s): 971639f

Upload etc/apt/apt.conf.d/20packagekit with huggingface_hub

Browse files
Files changed (1) hide show
  1. etc/apt/apt.conf.d/20packagekit +13 -0
etc/apt/apt.conf.d/20packagekit ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // THIS FILE IS USED TO INFORM PACKAGEKIT
2
+ // THAT THE UPDATE-INFO MIGHT HAVE CHANGED
3
+
4
+ // Whenever dpkg is called we might have different updates
5
+ // i.e. if an user removes a package that had an update
6
+ DPkg::Post-Invoke {
7
+ "/usr/bin/test -e /usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service && /usr/bin/test -S /var/run/dbus/system_bus_socket && /usr/bin/gdbus call --system --dest org.freedesktop.PackageKit --object-path /org/freedesktop/PackageKit --timeout 4 --method org.freedesktop.PackageKit.StateHasChanged cache-update > /dev/null; /bin/echo > /dev/null";
8
+ };
9
+
10
+ // When Apt's cache is updated (i.e. apt-cache update)
11
+ APT::Update::Post-Invoke-Success {
12
+ "/usr/bin/test -e /usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service && /usr/bin/test -S /var/run/dbus/system_bus_socket && /usr/bin/gdbus call --system --dest org.freedesktop.PackageKit --object-path /org/freedesktop/PackageKit --timeout 4 --method org.freedesktop.PackageKit.StateHasChanged cache-update > /dev/null; /bin/echo > /dev/null";
13
+ };