Skip to content

Commit 180a418

Browse files
committed
For F-Droid, default the entry point specification to true, with the option to disable
1 parent 69fb736 commit 180a418

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
77
## [Unreleased]
88
- Adding the ability to specify json as an output format when listing versions of an app available
99
- Using latest `gpapi` dependency, with more device configuration options for Google Play
10+
- For F-Droid, default the entry point specification to true, with the option to disable
1011
- Update dependencies
1112

1213
## [0.17.0] - 2024-10-11

USAGE-fdroid.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ In addition to specifying a mirror, a wholly separate F-Droid repo can be specif
1616
apkeep -a org.torproject.android -d f-droid -o repo=https://guardianproject.info/fdroid/repo?fingerprint=B7C2EEFD8DAC7806AF67DFCD92EB18126BC08312A7F2D6F3862E46013C7A6135 .
1717
```
1818

19-
If a repo supports the new [entry point specification](https://f-droid.org/docs/All_our_APIs/#the-repo-index), you can specify that be used instead of the older (v1) package index. This may become the default behavior in the future, but can be specified by use of the `use_entry` option:
19+
If a repo only supports the old (v1) package index, the newer [entry point specification](https://f-droid.org/docs/All_our_APIs/#the-repo-index) can be disabled by use of the `use_entry` option:
2020

2121
```shell
22-
apkeep -a org.torproject.android -d f-droid -o repo=https://guardianproject.info/fdroid/repo?fingerprint=B7C2EEFD8DAC7806AF67DFCD92EB18126BC08312A7F2D6F3862E46013C7A6135,use_entry=true .
22+
apkeep -a org.torproject.android -d f-droid -o repo=https://guardianproject.info/fdroid/repo?fingerprint=B7C2EEFD8DAC7806AF67DFCD92EB18126BC08312A7F2D6F3862E46013C7A6135,use_entry=false .
2323
```
2424

2525
A special option can also be used to skip verification of the repository index. *Only use for debugging purposes*:

src/download_sources/fdroid.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ async fn retrieve_index_or_exit(options: &HashMap<&str, &str>, mp: Rc<MultiProgr
4040
let mut repo = consts::FDROID_REPO.to_string();
4141
let mut fingerprint = Vec::from(consts::FDROID_INDEX_FINGERPRINT);
4242
let use_entry = match options.get("use_entry") {
43-
Some(val) if val == &"1" || val.to_lowercase() == "true" => true,
44-
_ => false,
43+
Some(val) if val == &"0" || val.to_lowercase() == "false" => false,
44+
_ => true,
4545
};
4646
if let Some(full_repo_option) = options.get("repo") {
4747
custom_repo = true;

0 commit comments

Comments
 (0)