fix package comparison
All checks were successful
Build and Push Docker Image / build-and-push-image (push) Successful in 8m45s
All checks were successful
Build and Push Docker Image / build-and-push-image (push) Successful in 8m45s
This commit is contained in:
parent
aacd2a7794
commit
0bb09dbbd8
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ namespace :debshots do
|
|||
new_version = DebImporter::Version.new(package[:Version])
|
||||
|
||||
Rails.logger.debug "Comparing package version: old=#{db_package.version} new=#{new_version}"
|
||||
if new_version.upstream > current_version.upstream
|
||||
if new_version > current_version
|
||||
# update the package information from new data
|
||||
update_data(package, db_package)
|
||||
Rails.logger.info "Updating package information"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue