kadischi/lib functions.py,1.15,1.16
Chitlesh GOORAH (chitlesh)
fedora-extras-commits at redhat.com
Sun Jul 9 09:56:54 UTC 2006
- Previous message: kadischi/lib functions.py,1.14,1.15
- Next message: rpms/abiword/FC-5 .cvsignore, 1.14, 1.15 abiword.spec, 1.36, 1.37 sources, 1.14, 1.15 abiword-2.4.4-fontcrash.patch, 1.1, NONE abiword-2.4.4-x86_64.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: chitlesh
Update of /cvs/devel/kadischi/lib
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv27034/lib
Modified Files:
functions.py
Log Message:
path_exists and url_exists functions in functions.py deprecated
Index: functions.py
===================================================================
RCS file: /cvs/devel/kadischi/lib/functions.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- functions.py 9 Jul 2006 09:44:52 -0000 1.15
+++ functions.py 9 Jul 2006 09:56:52 -0000 1.16
@@ -19,29 +19,6 @@
path = '/'.join([path, part])
return os.path.normpath (path)
-def path_exists (path, quiet = False):
- if os.path.exists (path):
- if not quiet:
- print "[kadischi]: Path %s exists. OK" % path
- return True
- else:
- if not quiet:
- print "[kadischi]: Error - path %s doesn't exist." % path
- return False
-
-def url_exists (url, quiet = False):
- try:
- u = grabber.urlopen (url, retry = 5)
- if not quiet:
- print "[kadischi]: URL %s contacted. OK" % url
- u.close ()
- return True
- except grabber.URLGrabError, e:
- if not quiet:
- print "[kadischi]: An error occurred contacting %s." % url
- print "[kadischi]: URLGrabError:\n %s" % e.strerror
- return False
-
def clear_rpm_db_files (rootdir):
"""Removes rpm database files in the destination if they exist"""
def rmpath (p):
- Previous message: kadischi/lib functions.py,1.14,1.15
- Next message: rpms/abiword/FC-5 .cvsignore, 1.14, 1.15 abiword.spec, 1.36, 1.37 sources, 1.14, 1.15 abiword-2.4.4-fontcrash.patch, 1.1, NONE abiword-2.4.4-x86_64.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list