[Fedora-r-devel-list] Errors in constructing SPEC from local source.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




In R2spec-3.0.3-1, if you set a local source (-s <source>) then the URL
and source0 fields in the spec will remain empty.  Such specs fail to
build.

There are a variety of ways to address this, I'm not sure that what I've
done is really a superior solution.  


in RPackage.py, down the branch of "I've only got a source, not a
source0", I added

                self.source0 = source
                self.URL = source

(see below).

This means that URL is populated with a local file path, but that's
really all that's available. 



....

All I'm really trying to do right now is get ggplot to one of my
customers.  I wasn't gearing up for contributing much code, but I can,
if that's what Pierre-Yves wants. 

I have to say, this is being a distinctly frustrating process.

....

"below"... 


    def setSource(self, source0, source):
        ''' From the url retrieve the name of the source '''
        if source != None and source0 != None:
            if source != source0.rsplit('/',1)[1] :
                sys.exit("Do not give 2 contradictory sources of information")
        elif source != None:
            try:
                self.source = source.rsplit('/',1)[1]
                self.path = source.rsplit('/',1)[0]
                self.source0 = source
                self.URL = source
            except IndexError, err:
                self.source = source
                self.path = '../'
        elif source0 != None:
            self.source = source0.rsplit('/',1)[1]
            self.path = '../'
            self.source0 = source0
        else:
            sys.exit("The source are not correct ")



- Allen S. Rout

_______________________________________________
r-devel mailing list
r-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/r-devel


[Index of Archives]     [Fedora Users]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux