RSE manager: remove .part from filename if adler32 is set and ignore_checksum is true
Motivation
----------
rsemanager.download, downloads the file as <filename>.part if an adler32 checksum is given.
If ignore_checksum is set to True the file will not be renamed thus the .part will not be removed from the file name.

Modification
------------
Make the  os.rename call independent of ignore_checksum
diff --git a/lib/rucio/rse/rsemanager.py b/lib/rucio/rse/rsemanager.py
index a78d0df7b..4bb5ffb0f 100755
--- a/lib/rucio/rse/rsemanager.py
+++ b/lib/rucio/rse/rsemanager.py
@@ -267,16 +267,19 @@ def download(rse_settings, files, dest_dir=None, force_scheme=None, ignore_check
                     if printstatements:
                         print('File downloaded. Will be validated')
 
-                    if not ignore_checksum:
+                    if ignore_checksum:
+                        if printstatements:
+                            print('Skipping checksum validation')
+                    else:
                         ruciochecksum = f['adler32'] if f['adler32'] else f['md5']
                         localchecksum = utils.adler32(tempfile) if f['adler32'] else utils.md5(tempfile)
                         if localchecksum == ruciochecksum:
                             if printstatements:
                                 print('File validated')
-                            os.rename(tempfile, finalfile)
                         else:
                             os.unlink(tempfile)
                             raise exception.FileConsistencyMismatch('Checksum mismatch : local %s vs recorded %s' % (str(localchecksum), str(ruciochecksum)))
+                    os.rename(tempfile, finalfile)
                 else:
                     protocol.get(pfn, '%s/%s' % (target_dir, f['name']), transfer_timeout=transfer_timeout)
                 ret['%s:%s' % (f['scope'], f['name'])] = True
['lib/rucio/rse/rsemanager.py']