diff options
Diffstat (limited to 'repofs.py')
-rw-r--r--[-rwxr-xr-x] | repofs.py | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/repofs.py b/repofs.py index 161260e..6a0259b 100755..100644 --- a/repofs.py +++ b/repofs.py @@ -1,8 +1,21 @@ #!/usr/bin/python # repofs.py - Export the contents of a package repo as a readonly filesystem. -# -# Copyright 2009 Red Hat, Inc. GPLv2+ BOILERPLATE GOES HERE. +# Copyright 2009 Red Hat, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. # +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# # Author: Will Woods <wwoods@redhat.com> # # Exports the contents of the repo(s) in a filesystem that looks like this: @@ -300,10 +313,13 @@ class Repofs(FuseRO): # FIXME modify s using info from local_s return local_s - # TODO: fgetattr flush fsdestroy fsync fsyncdir - # getxattr listxattr lock read utime utimens - # NOTE open, opendir, release, releasedir: unused/unneeded. - # NOTE bmap, readlink: not implemented (doesn't make sense) + class RepofsFile(object): + def __init__(self, path, flags, *mode): + + # TODO: fgetattr flush fsdestroy fsync fsyncdir + # getxattr listxattr lock read utime utimens + # NOTE open, opendir, release, releasedir: unused/unneeded. + # NOTE bmap, readlink: not implemented (doesn't make sense) # def access(self, path, mode): # self.log("access('%s',%s)" % (path, oct(mode))) |