Skip to content

Commit

Permalink
preserve per-package pre-release option when synchronizing
Browse files Browse the repository at this point in the history
  • Loading branch information
cfillion committed Oct 28, 2024
1 parent 115105a commit 46c179a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/synchronize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,5 @@ void SynchronizeTask::synchronize(const Package *pkg)
else if(entry.test(Registry::Entry::PinnedFlag) || latest->name() < entry.version)
return;

tx()->install(latest, entry);
tx()->install(latest, entry, entry.flags);
}
2 changes: 1 addition & 1 deletion src/transaction.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Transaction {
const std::optional<bool> &forceAutoInstall = std::nullopt);
void install(const Version *, int flags = 0, const ArchiveReaderPtr & = nullptr);
void install(const Version *, const Registry::Entry &oldEntry,
int flags = false, const ArchiveReaderPtr & = nullptr);
int flags = 0, const ArchiveReaderPtr & = nullptr);
void setFlags(const Registry::Entry &, int flags);
void uninstall(const Remote &);
void uninstall(const Registry::Entry &);
Expand Down

0 comments on commit 46c179a

Please sign in to comment.