Skip to content
Permalink
Browse files

Added prerm script to delete pyc files before removal

  • Loading branch information
simoncadman committed Feb 5, 2014
1 parent 17fc160 commit c2fe36ff1019652657ae96ee6835bc478d2d7250
Showing with 11 additions and 8 deletions.
  1. +1 −1 backend.py
  2. +1 −1 deleteaccount.py
  3. +1 −1 dynamicppd.py
  4. +1 −1 listcloudprinters.py
  5. +1 −1 listdrivefiles.py
  6. +3 −0 packages/debian/prerm
  7. +1 −1 reportissues.py
  8. +1 −1 setupcloudprint.py
  9. +1 −1 upgrade.py
@@ -20,7 +20,7 @@

if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
CCPVersion = "20140203 225614"
CCPVersion = "20140205 235835"
print "CUPS Cloud Print CUPS Backend Version " + CCPVersion
sys.exit(0)

@@ -21,7 +21,7 @@

if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
CCPVersion = "20140203 225614"
CCPVersion = "20140205 235835"
print "CUPS Cloud Print Delete Account Script Version " + CCPVersion
sys.exit(0)

@@ -19,7 +19,7 @@

if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
CCPVersion = "20140203 225614"
CCPVersion = "20140205 235835"
print "CUPS Cloud Print Dynamic PPD Generator Version " + CCPVersion
sys.exit(0)

@@ -28,7 +28,7 @@

if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
CCPVersion = "20140203 225614"
CCPVersion = "20140205 235835"
print "CUPS Cloud Print Printer Lister Version " + CCPVersion
sys.exit(0)

@@ -21,7 +21,7 @@

if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
CCPVersion = "20140203 225614"
CCPVersion = "20140205 235835"
print "CUPS Cloud Print Printer Drive Lister Version " + CCPVersion
sys.exit(0)

@@ -0,0 +1,3 @@
#! /bin/bash

find /usr/share/cloudprint-cups/ -name *.pyc -type f -delete
@@ -19,7 +19,7 @@

if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
CCPVersion = "20140203 225614"
CCPVersion = "20140205 235835"
print "CUPS Cloud Print Issue Reporting Script Version " + CCPVersion
sys.exit(0)

@@ -21,7 +21,7 @@

if len(sys.argv) == 2 and sys.argv[1] == 'version':
# line below is replaced on commit
CCPVersion = "20140203 225614"
CCPVersion = "20140205 235835"
print "CUPS Cloud Print Setup Script Version " + CCPVersion
sys.exit(0)

@@ -41,7 +41,7 @@
sys.stderr.write("If you are upgrading from version 20131013 or earlier you should be aware that the scripts have moved from /usr/lib/cloudprint-cups to /usr/share/cloudprint-cups\n")

# line below is replaced on commit
CCPVersion = "20140203 225614"
CCPVersion = "20140205 235835"

if len(sys.argv) == 2 and sys.argv[1] == 'version':
print "CUPS Cloud Print Upgrade Script Version " + CCPVersion

0 comments on commit c2fe36f

Please sign in to comment.
You can’t perform that action at this time.