diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2017-11-20 18:52:40 +0300 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2017-11-22 17:24:43 +0300 |
commit | 7792e5f886ac7143e5f59f345023e822df483523 (patch) | |
tree | 3c4e0698c1b500a42a929acfdd79cd76e61c5220 | |
parent | 3268914882eed98fc8849f83e01163728692e379 (diff) |
Consider external-source: in 'empty but not obsolete' check
-rwxr-xr-x | calm/package.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/calm/package.py b/calm/package.py index 746cb0b..73ba0ed 100755 --- a/calm/package.py +++ b/calm/package.py @@ -628,11 +628,10 @@ def validate_packages(args, packages): # If the install tarball is empty and there is no source tarball, we # should probably be marked obsolete - # (XXX: should consider external-source: ?) if not packages[p].skip: for vr in packages[p].version_hints: if '_obsolete' not in packages[p].version_hints[vr].get('category', ''): - if 'source' not in packages[p].vermap[vr]: + if ('source' not in packages[p].vermap[vr]) and ('external-source' not in packages[p].version_hints[vr]): if 'install' in packages[p].vermap[vr]: if packages[p].tar(vr, 'install').is_empty: if p in past_mistakes.empty_but_not_obsolete: |