Changeset 2395


Ignore:
Timestamp:
Sep 9, 2016, 8:36:15 AM (3 years ago)
Author:
jrpelegrina
Message:

Fix postinst and script

Location:
lliurex-desktops-keeper/trunk/fuentes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lliurex-desktops-keeper/trunk/fuentes/debian/postinst

    r2391 r2395  
    2121case "$1" in
    2222    configure)
    23         lliurex-desktops-db ADD /usr/share/lliurex-desktops-keeper/custom 25
     23        lliurex-desktops-db ADD /usr/share/lliurex-desktops-keeper/custom-desktops 25
    2424
    2525        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  
    5050                                db.append((path+os.sep+file,priority))
    5151
    52                                 subprocess.call(["dpkg-divert","--package","lliurex-desktops-keepers","--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)])
    5353                                shutil.copy(str(path+os.sep+file),str(destination_path+file))
    5454                        else:
     
    6363                                if ret < priority:
    6464                                        #print "* Inserting with a higher priority: ",file
    65                                         subprocess.call(["dpkg-divert","--package","lliurex-desktops-keepers","--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)])
    6666                                        shutil.copy(str(path+os.sep+file),str(destination_path+file))
    6767                                       
     
    127127                                os.remove(destination_path+file)
    128128                                #print "* Removing diversion"
    129                                 subprocess.call(["dpkg-divert","--package","lliurex-desktops-keepers","--rename","--quiet","--remove", str(destination_path+file)])
     129                                subprocess.call(["dpkg-divert","--package","lliurex-desktops-keeper","--rename","--quiet","--remove", str(destination_path+file)])
    130130                                # rm "destination_path $f"; dpkg-divert --package lliurex-desktops-keepers --rename --quiet --remove destination_path $f
    131131       
     
    160160                                os.remove(destination_path+file)
    161161                        #print "* Removing Diversion"
    162                         subprocess.call(["dpkg-divert","--package","lliurex-desktops-keepers","--rename","--quiet","--remove",str(destination_path+file)])
     162                        subprocess.call(["dpkg-divert","--package","lliurex-desktops-keeper","--rename","--quiet","--remove",str(destination_path+file)])
    163163       
    164164        #print "* Removing db file"
Note: See TracChangeset for help on using the changeset viewer.