| 1142 | Backups, |
| 1143 | /// The alpm-architecture of run-time dependencies. |
| 1144 | Dependencies(Option<Architecture>), |
| 1145 | /// The alpm-architecture of optional dependencies. |
| 1146 | OptionalDependencies(Option<Architecture>), |
| 1147 | /// The alpm-architecture of provisions. |
| 1148 | Provides(Option<Architecture>), |
| 1149 | /// The alpm-architecture of conflicts. |
| 1150 | Conflicts(Option<Architecture>), |
| 1151 | /// The alpm-architecture of replacements. |
| 1152 | Replaces(Option<Architecture>), |
| 1153 | } |
| 1154 | |
| 1155 | impl ClearableProperty { |
| 1156 | /// Recognizes all keyword assignments in SRCINFO data that represent a cleared |
| 1157 | /// [`SharedMetaProperty`]. |
| 1158 | /// |
| 1159 | /// A cleared property is represented by a keyword that is assigned an empty value. |
| 1160 | /// It indicates that the keyword assignment should remain empty for a given package. |
| 1161 | /// |
| 1162 | /// Example: |
| 1163 | /// ```txt |
| 1164 | /// pkgdesc = |
| 1165 | /// depends = |
| 1166 | /// ``` |
| 1167 | /// |
| 1168 | /// The above properties would indicate that both `pkgdesc` and the `depends` array are to be |
| 1169 | /// cleared and left empty for a given package. |
| 1170 | /// |
| 1171 | /// This function backtracks in case no keyword in this group matches or in case the property is |
| 1172 | /// not cleared. |
| 1173 | fn shared_meta_parser(input: &mut &str) -> ModalResult<ClearableProperty> { |
| 1174 | // First off, check if this is any of the clearable properties. |
nothing calls this directly
no outgoing calls
no test coverage detected