summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-config-svn/file_time_offset.py
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2011-11-04 04:08:02 (GMT)
committerJames Meyer <james.meyer@operamail.com>2011-11-04 04:08:02 (GMT)
commit4c97e029f2083f8217ef7d64dc28866decb47e53 (patch)
treea6e77188f41df884a4acd28eb32f659a3a796b25 /abs/core/LinHES-config-svn/file_time_offset.py
parent0fdddf9ae0c87c986ce6cae751c07a0f8c603021 (diff)
downloadlinhes_pkgbuild-4c97e029f2083f8217ef7d64dc28866decb47e53.zip
linhes_pkgbuild-4c97e029f2083f8217ef7d64dc28866decb47e53.tar.gz
linhes_pkgbuild-4c97e029f2083f8217ef7d64dc28866decb47e53.tar.bz2
remove old packages that are no longer needed.
linhes-config-svn ddcxinfo-arch portmap mythtv-vdpau hdhgrp openjdk (jre is still present, we don't need or want both)
Diffstat (limited to 'abs/core/LinHES-config-svn/file_time_offset.py')
-rwxr-xr-xabs/core/LinHES-config-svn/file_time_offset.py39
1 files changed, 0 insertions, 39 deletions
diff --git a/abs/core/LinHES-config-svn/file_time_offset.py b/abs/core/LinHES-config-svn/file_time_offset.py
deleted file mode 100755
index f2973d0..0000000
--- a/abs/core/LinHES-config-svn/file_time_offset.py
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/usr/bin/python
-
-
-import time
-import os
-import glob
-import getopt
-import sys
-def main(argv):
- filecount=0
-# root = "/tmp"
-# offset = 4
- now = int(time.time())
-
-
- try:
- opts, args = getopt.getopt(argv, "hs:d:")
- except getopt.GetoptError:
- sys.exit(2)
- for opt, arg in opts:
- if opt in ("-h", "--help"):
- print "-s seconds -d /testdir"
- print "default if 4 seconds"
- sys.exit()
- elif opt in ( "-s" ):
- offset = int(arg)
- elif opt in ("-d"):
- root = arg
-
- for item in glob.glob(root+"/*"):
- lastmodDate = os.path.getmtime(item)
- tdiff= now-lastmodDate
- #print tdiff, offset
-
- if tdiff > offset:
- filecount+=1
- print filecount
-if __name__ == "__main__":
- main(sys.argv[1:])