Skip to content

Commit

Permalink
Slight code changes, and fix sysupgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
BurntRanch committed Jun 19, 2024
1 parent 1168e60 commit 51a7b6a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ bool removePkg(alpm_list_t *pkgNames) {
try {
auto pkg = std::find(pkgs.begin(), pkgs.end(), includedPkgs[i]);

if (pkgs.begin() >= pkg || pkg >= pkgs.end())
if (pkg >= pkgs.end())
continue;

size_t pkgIndex = std::distance(pkgs.begin(), pkg);
Expand Down
2 changes: 0 additions & 2 deletions src/taur.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,6 @@ bool TaurBackend::update_all_aur_pkgs(path cacheDir, bool useGit) {
goto text;
}

// remove the last ' ' so we can pass it to pacman
pkgs_to_install.erase(pkgs_to_install.end() - 1);
if (!pacman_exec("-U", split(pkgs_to_install, ' '), false)) {
log_println(ERROR, _("Failed to install/upgrade packages"));
return false;
Expand Down

0 comments on commit 51a7b6a

Please sign in to comment.