remove outdated comments; use File concatenation instead of separators
This commit is contained in:
parent
aab46c8ab2
commit
c60c606dcf
@ -49,7 +49,7 @@ public class Provisioner {
|
|||||||
*/
|
*/
|
||||||
public static void scanAndProcess(Context context) {
|
public static void scanAndProcess(Context context) {
|
||||||
|
|
||||||
File provisionDir = new File(context.getExternalFilesDir(null).getAbsolutePath() + File.separator + NEW_PROVISIONS_DIR);
|
File provisionDir = new File(context.getExternalFilesDir(null).getAbsolutePath(), NEW_PROVISIONS_DIR);
|
||||||
|
|
||||||
if (!provisionDir.isDirectory()) {
|
if (!provisionDir.isDirectory()) {
|
||||||
Utils.debugLog(TAG, "Provisions dir does not exists: '" + provisionDir.getAbsolutePath() + "' moving on ...");
|
Utils.debugLog(TAG, "Provisions dir does not exists: '" + provisionDir.getAbsolutePath() + "' moving on ...");
|
||||||
@ -70,7 +70,6 @@ public class Provisioner {
|
|||||||
if (provision.getRepositoryProvision() != null) {
|
if (provision.getRepositoryProvision() != null) {
|
||||||
RepositoryProvision repo = provision.getRepositoryProvision();
|
RepositoryProvision repo = provision.getRepositoryProvision();
|
||||||
|
|
||||||
// TODO uniqx: check if repo is already enable
|
|
||||||
Repo storedRepo = RepoProvider.Helper.findByAddress(context, repo.getUrl());
|
Repo storedRepo = RepoProvider.Helper.findByAddress(context, repo.getUrl());
|
||||||
if (storedRepo != null) {
|
if (storedRepo != null) {
|
||||||
Utils.debugLog(TAG, "Provision contains a repo which is already added: '" + provision.getProvisonPath() + "' ignoring ...");
|
Utils.debugLog(TAG, "Provision contains a repo which is already added: '" + provision.getProvisonPath() + "' ignoring ...");
|
||||||
|
@ -298,8 +298,6 @@ public class ManageReposActivity extends AppCompatActivity implements LoaderMana
|
|||||||
case EXISTS_DISABLED:
|
case EXISTS_DISABLED:
|
||||||
case EXISTS_UPGRADABLE_TO_SIGNED:
|
case EXISTS_UPGRADABLE_TO_SIGNED:
|
||||||
case EXISTS_FINGERPRINT_MATCH:
|
case EXISTS_FINGERPRINT_MATCH:
|
||||||
// TODO uniqx:
|
|
||||||
//updateAndEnableExistingRepo(url, fp, username, password);
|
|
||||||
updateAndEnableExistingRepo(url, fp);
|
updateAndEnableExistingRepo(url, fp);
|
||||||
finishedAddingRepo();
|
finishedAddingRepo();
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user