|
|
@ -112,18 +112,17 @@ void Package::installOrAurInstall(InstallType type) |
|
|
|
|
|
|
|
|
|
|
|
std::optional<std::string> aurHelper; |
|
|
|
std::optional<std::string> aurHelper; |
|
|
|
if (type == InstallType::AurInstall) { |
|
|
|
if (type == InstallType::AurInstall) { |
|
|
|
if (m_distro == Distro::Arch) { |
|
|
|
if (m_distro != Distro::Arch) { |
|
|
|
|
|
|
|
fprintf(stderr, "\033[31;1mPackage:\033[0m AUR is not supported on this distribution\n"); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
aurHelper = fetchAurHelper(); |
|
|
|
aurHelper = fetchAurHelper(); |
|
|
|
if (!aurHelper.has_value()) { |
|
|
|
if (!aurHelper.has_value()) { |
|
|
|
fprintf(stderr, "\033[31;1mPackage:\033[0m no supported AUR helper found\n"); |
|
|
|
fprintf(stderr, "\033[31;1mPackage:\033[0m no supported AUR helper found\n"); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
|
|
|
|
fprintf(stderr, "\033[31;1mPackage:\033[0m AUR is not supported on this distribution\n"); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
std::string command = ""; |
|
|
|
std::string command = ""; |
|
|
|
|
|
|
|
|
|
|
|