mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
old changes; fixed one subtle handling where there's no new package
but no update, so it's okay
This commit is contained in:
parent
28e23308d4
commit
edfde9187c
1 changed files with 5 additions and 3 deletions
|
@ -228,7 +228,8 @@ for c_file in c_files:
|
||||||
#
|
#
|
||||||
# Go through the package collection
|
# Go through the package collection
|
||||||
# 1 - if package has no new, place its old file on the "delete" list
|
# 1 - if package has no new, place its old file on the "delete" list
|
||||||
# 2 - if package has a new but no new.file, error and skip
|
# 2 - if package has a new but no new.file, and old file doesn't
|
||||||
|
# have the same version, then error and skip
|
||||||
# 3 - if package has no old, add new file to "copy" list into repo dir
|
# 3 - if package has no old, add new file to "copy" list into repo dir
|
||||||
# 4 - if old > new, error and skip
|
# 4 - if old > new, error and skip
|
||||||
# 5 - if new == old, compare them and error and skip if files not the same
|
# 5 - if new == old, compare them and error and skip if files not the same
|
||||||
|
@ -243,6 +244,7 @@ for package in packages.values():
|
||||||
|
|
||||||
# 2
|
# 2
|
||||||
if (package.new.file == None):
|
if (package.new.file == None):
|
||||||
|
if (package.old.file == None or package.old.version != package.new.version):
|
||||||
error("No new package supplied for " + package.name + " " + package.new.version + "!")
|
error("No new package supplied for " + package.name + " " + package.new.version + "!")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue