Changeset 187 in tailor


Ignore:
Timestamp:
12/27/04 21:30:08 (8 years ago)
Author:
lele@…
Hash name:
20041227203008-97f81-114a1e6d6d5ee122b2e6389e2ea9b18ef7df39ab
Message:

Save also the subdir in the tailor.info file

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • vcpx/tailor.py

    r183 r187  
    210210        print >>f, self.upstream_repos 
    211211        print >>f, self.upstream_revision 
     212        print >>f, self.subdir 
    212213        f.close() 
    213214 
     
    227228        statusfilename = join(self.root, STATUS_FILENAME) 
    228229        f = open(statusfilename) 
    229         (srck, dstk, 
    230          module, upstream_repos, upstream_revision) = f.readlines() 
    231         self.source_kind = srck[:-1] 
    232         self.target_kind = dstk[:-1] 
    233         self.module = module[:-1] 
    234         self.subdir = split(self.module)[1] 
    235         self.upstream_repos = upstream_repos[:-1] 
    236         self.upstream_revision = upstream_revision[:-1] 
     230        self.source_kind = f.readline()[:-1] 
     231        self.target_kind = f.readline()[:-1] 
     232        self.module = f.readline()[:-1] 
     233        self.upstream_repos = f.readline()[:-1] 
     234        self.upstream_revision = f.readline()[:-1] 
     235        subdir = f.readline() 
     236        if subdir: 
     237            self.subdir = subdir[:-1] 
     238        else: 
     239            self.subdir = split(self.module)[1]             
    237240        f.close() 
    238241 
  • README

    r185 r187  
    86864. The URL of the upstream repository (that may not be an URL, for cvs...) 
    87875. The current revision, from the upstream point of view, of the sources 
     886. The subdirectory that contains the checked out upstream tree, 
     89   either that given with with the `--subdir` option or computed 
     90   taking the last part of the module name.  
    8891 
    8992This is everything tailor needs, to be able to keep going from where it 
Note: See TracChangeset for help on using the changeset viewer.