Alon Bar-Lev has posted comments on this change.
Change subject: packaging: fix default filemod in copyFile
......................................................................
Patch Set 5:
(1 comment)
....................................................
File packaging/fedora/setup/common_utils.py
Line 737: logging.debug("setting file %s uid/gid ownership"%(targetFile))
Line 738: os.chown(targetFile, uid, gid)
Line 739:
Line 740: if filemod is not None:
Line 741: if filemod > 0:
I would have skipped this test...
But anyway... proper style is:
if filemod <= 0:
raise Excpetion()
continue as usual
Line 742: logging.debug("setting file %s mode to %d"%(targetFile,
filemod))
Line 743: os.chmod(targetFile, filemod)
Line 744: else:
Line 745: raise Exception("copyFile called with an invalid filemod
%s" % filemod)
--
To view, visit http://gerrit.ovirt.org/19557
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I9e436d72e8ffb8d48e05201727d5b46797881556
Gerrit-PatchSet: 5
Gerrit-Project: ovirt-engine
Gerrit-Branch: engine_3.2
Gerrit-Owner: Yedidyah Bar David <[email protected]>
Gerrit-Reviewer: Alon Bar-Lev <[email protected]>
Gerrit-Reviewer: Ofer Schreiber <[email protected]>
Gerrit-Reviewer: Sandro Bonazzola <[email protected]>
Gerrit-Reviewer: Yedidyah Bar David <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches