Perform 'touch' on ``chroot/dst`` with optional label. Has similar exceptional cases as Chroot.copy
(
self,
dst, # type: str
label=None, # type: Optional[str]
)
| 812 | chmod_plus_x(wp.name) |
| 813 | |
| 814 | def touch( |
| 815 | self, |
| 816 | dst, # type: str |
| 817 | label=None, # type: Optional[str] |
| 818 | ): |
| 819 | # type: (...) -> None |
| 820 | """Perform 'touch' on ``chroot/dst`` with optional label. |
| 821 | |
| 822 | Has similar exceptional cases as Chroot.copy |
| 823 | """ |
| 824 | dst = self._normalize(dst) |
| 825 | self._tag(dst, label, compress=False) |
| 826 | touch(os.path.join(self.chroot, dst)) |
| 827 | |
| 828 | def get(self, label): |
| 829 | # type: (Optional[str]) -> Set[str] |
no test coverage detected