Returns contents of the RECORD file. If `record_path` is specified we append a final line ` ,,`; this can be used to include the RECORD file itself in the contents, with empty hash and size fields.
(self, record_path=None)
| 3256 | self.add_content(content, to_, verbose=False) |
| 3257 | |
| 3258 | def get(self, record_path=None): |
| 3259 | ''' |
| 3260 | Returns contents of the RECORD file. If `record_path` is |
| 3261 | specified we append a final line `<record_path>,,`; this can be |
| 3262 | used to include the RECORD file itself in the contents, with |
| 3263 | empty hash and size fields. |
| 3264 | ''' |
| 3265 | ret = self.text |
| 3266 | if record_path: |
| 3267 | ret += f'{record_path},,\n' |
| 3268 | return ret |
| 3269 | |
| 3270 | |
| 3271 | class NewFiles: |
no outgoing calls