Skip to content

Commit bf9c7ef

Browse files
committed
Fix thinko in check that something is being uploaded
1 parent fb7dd2e commit bf9c7ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

calm/uploads.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ def auth_check(args, m, scan_result, packages, direct_upload):
363363
return
364364

365365
# direct uploads must now be explicitly enabled for a maintainer
366-
if packages and direct_upload and not m.uploads_allowed:
366+
if scan_result.packages and direct_upload and not m.uploads_allowed:
367367
logging.error("direct uploads are not enabled for maintainer '%s'" % (m.name))
368368
scan_result.error = True
369369
return

0 commit comments

Comments
 (0)