Skip to content

Commit 46c179a

Browse files
committed
preserve per-package pre-release option when synchronizing
1 parent 115105a commit 46c179a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/synchronize.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,5 +96,5 @@ void SynchronizeTask::synchronize(const Package *pkg)
9696
else if(entry.test(Registry::Entry::PinnedFlag) || latest->name() < entry.version)
9797
return;
9898

99-
tx()->install(latest, entry);
99+
tx()->install(latest, entry, entry.flags);
100100
}

src/transaction.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class Transaction {
5757
const std::optional<bool> &forceAutoInstall = std::nullopt);
5858
void install(const Version *, int flags = 0, const ArchiveReaderPtr & = nullptr);
5959
void install(const Version *, const Registry::Entry &oldEntry,
60-
int flags = false, const ArchiveReaderPtr & = nullptr);
60+
int flags = 0, const ArchiveReaderPtr & = nullptr);
6161
void setFlags(const Registry::Entry &, int flags);
6262
void uninstall(const Remote &);
6363
void uninstall(const Registry::Entry &);

0 commit comments

Comments
 (0)