diff options
author | eliott <eliott@cactuswax.net> | 2008-08-21 01:23:04 -0700 |
---|---|---|
committer | Dusty Phillips <buchuki@gmail.com> | 2008-08-21 16:42:42 -0400 |
commit | 8d3490f7cf578b4bbc4440d2982045790e6c03a5 (patch) | |
tree | 19fb9bd76c2b316067c02624e68d0d776eb87b2c /scripts | |
parent | ac63cc4101da73e5b1b4424c53f29033557c6596 (diff) |
Fix for FS#10881 - URL missing in some packages.
This patch adds URL to the fields to be updated on package update.
Path is a fix for the following scenario:
- a package is added at one point.
- later a url is changed or added.
- when the package is updated, the following fields are updated:
pkgver, pkgrel, pkgdesc, needupdate, last_update
There was an original assumption, that some fields were very seldom changed,
and it would not have make sense from a performance standpoint to update the
fields that never changed, since the update mechanism was written using the
django orm..which is 'chatty'.
NOTE: It is rather pointless to do a compare to test if the field has changed.
It is more performant to simply update the field regardless.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/reporead.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/reporead.py b/scripts/reporead.py index d9637ab4..2f55f149 100755 --- a/scripts/reporead.py +++ b/scripts/reporead.py @@ -216,6 +216,7 @@ def db_update(archname, pkgs): pkg.pkgver = p.ver pkg.pkgrel = p.rel pkg.pkgdesc = p.desc + pkg.url = p.url pkg.needupdate = False pkg.last_update = now pkg.save() |