Changeset 2395
- Timestamp:
- Sep 9, 2016, 8:36:15 AM (4 years ago)
- Location:
- lliurex-desktops-keeper/trunk/fuentes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurex-desktops-keeper/trunk/fuentes/debian/postinst
r2391 r2395 21 21 case "$1" in 22 22 configure) 23 lliurex-desktops-db ADD /usr/share/lliurex-desktops-keeper/custom 2523 lliurex-desktops-db ADD /usr/share/lliurex-desktops-keeper/custom-desktops 25 24 24 25 25 update-desktop-database /usr/share/applications/ >/dev/null 2>/dev/null || true -
lliurex-desktops-keeper/trunk/fuentes/install/usr/sbin/lliurex-desktops-db
r2390 r2395 50 50 db.append((path+os.sep+file,priority)) 51 51 52 subprocess.call(["dpkg-divert","--package","lliurex-desktops-keeper s","--rename","--quiet","--add","--divert", str(destination_path+file+".diverted"),str(destination_path+file)])52 subprocess.call(["dpkg-divert","--package","lliurex-desktops-keeper","--rename","--quiet","--add","--divert", str(destination_path+file+".diverted"),str(destination_path+file)]) 53 53 shutil.copy(str(path+os.sep+file),str(destination_path+file)) 54 54 else: … … 63 63 if ret < priority: 64 64 #print "* Inserting with a higher priority: ",file 65 subprocess.call(["dpkg-divert","--package","lliurex-desktops-keeper s","--rename","--quiet","--add","--divert", str(destination_path+file+".diverted"),str(destination_path+file)])65 subprocess.call(["dpkg-divert","--package","lliurex-desktops-keeper","--rename","--quiet","--add","--divert", str(destination_path+file+".diverted"),str(destination_path+file)]) 66 66 shutil.copy(str(path+os.sep+file),str(destination_path+file)) 67 67 … … 127 127 os.remove(destination_path+file) 128 128 #print "* Removing diversion" 129 subprocess.call(["dpkg-divert","--package","lliurex-desktops-keeper s","--rename","--quiet","--remove", str(destination_path+file)])129 subprocess.call(["dpkg-divert","--package","lliurex-desktops-keeper","--rename","--quiet","--remove", str(destination_path+file)]) 130 130 # rm "destination_path $f"; dpkg-divert --package lliurex-desktops-keepers --rename --quiet --remove destination_path $f 131 131 … … 160 160 os.remove(destination_path+file) 161 161 #print "* Removing Diversion" 162 subprocess.call(["dpkg-divert","--package","lliurex-desktops-keeper s","--rename","--quiet","--remove",str(destination_path+file)])162 subprocess.call(["dpkg-divert","--package","lliurex-desktops-keeper","--rename","--quiet","--remove",str(destination_path+file)]) 163 163 164 164 #print "* Removing db file"
Note: See TracChangeset
for help on using the changeset viewer.