Skip to content

Commit 72f9a64

Browse files
committed
inverted logic (or vs and in not)
1 parent e28da6f commit 72f9a64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/pavilion/wget.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,10 @@ def update(pav_cfg, url, dest):
263263
# depends on the transfer encoding. It should match for any already
264264
# compressed files, but other data types are frequently compressed.
265265
elif (not (
266-
info.get('ETag') == head_data.get('ETag') or
266+
info.get('ETag') == head_data.get('ETag') and
267267
# If the old content length is the same, it's probably
268268
# unchanged. Probably...
269-
head_data.get('Content-Length') == info.get('Content-Length') or
269+
head_data.get('Content-Length') == info.get('Content-Length') and
270270
# Or if the content length matches the actual size.
271271
head_data.get('Content-Length') == info['size'])):
272272
fetch = True

0 commit comments

Comments
 (0)