[Python-checkins] python/nondist/peps pep-0262.txt,1.7,1.8
akuchling@users.sourceforge.net
akuchling@users.sourceforge.net
Sun, 13 Oct 2002 13:20:25 -0700
Update of /cvsroot/python/python/nondist/peps
In directory usw-pr-cvs1:/tmp/cvs-serv30879
Modified Files:
pep-0262.txt
Log Message:
Add two methods to interface (old change)
Index: pep-0262.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0262.txt,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** pep-0262.txt 29 May 2002 21:24:23 -0000 1.7
--- pep-0262.txt 13 Oct 2002 20:20:23 -0000 1.8
***************
*** 134,137 ****
--- 134,145 ----
"""
+ def find_package (self, path):
+ """find_file(path:string) : Package
+ Search and return the package containing the file 'path'.
+ Returns None if the file doesn't belong to any package
+ that the InstallationDatabase knows about.
+ XXX should this work for directories?
+ """
+
class Package:
"""Instance attributes:
***************
*** 164,167 ****
--- 172,188 ----
"""
+ def has_file (self, path):
+ """has_file(path:string) : Boolean
+ Returns true if the specified path belongs to a file in this
+ package.
+ """
+
+ def check_file (self, path):
+ """check_file(path:string) : Boolean
+ Checks whether the file's size, checksum, and ownership match,
+ returning true if they do.
+ """
+
+
Deliverables