ACCC1380 commited on
Commit
23cbee5
1 Parent(s): bf881bb

Upload var/lib/dpkg/info/libstdc++6:amd64.prerm with huggingface_hub

Browse files
var/lib/dpkg/info/libstdc++6:amd64.prerm ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #! /bin/sh
2
+
3
+ set -e
4
+
5
+ case "$1" in
6
+ remove|upgrade)
7
+ files=$(dpkg -L libstdc++6:amd64 | awk -F/ 'BEGIN {OFS="/"} /\.py$/ {$NF=sprintf("__pycache__/%s.*.py[co]", substr($NF,1,length($NF)-3)); print}')
8
+ rm -f $files
9
+ dirs=$(dpkg -L libstdc++6:amd64 | awk -F/ 'BEGIN {OFS="/"} /\.py$/ {NF--; print}' | sort -u)
10
+ find $dirs -mindepth 1 -maxdepth 1 -name __pycache__ -type d -empty | xargs -r rmdir
11
+ esac
12
+
13
+