def check_stale(package_info, *args):
reason = '<STR_LIT>'.format(DAYS_STALE)<EOL>result = False<EOL>now = datetime.utcnow()<EOL>release_urls = args[<NUM_LIT:0>]<EOL>if len(release_urls) > <NUM_LIT:0>:<EOL><INDENT>package_uploaded_time = release_urls[<NUM_LIT:0>]['<STR_LIT>']<EOL>if now - timedelta(days=DAYS_STALE) <= package_uploaded_time:<EOL><INDENT>result = True<EOL><DEDENT><DEDENT>return result, reason, NOT_STALE<EOL>
Is the package stale?
:param package_info: package_info dictionary
:return: Tuple (is the condition True or False?, reason if it is False else None)