This file is indexed.

/usr/share/clam/sconstools/dmg.py is in libclam-dev 1.4.0-7.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import os

def create_dmg( target, source, env) :
	volume = str(target[0]).replace('.dmg', '')

	os.system( "mkdir DMG" )
	for s in source :
		os.system( "cp -r %s DMG"%s )
	os.system( "hdiutil create -srcfolder DMG -volname %s %s"%(volume, target[0]) )
	#os.system( "sudo hdiutil create -srcfolder DMG -volname %s -uid 0 %s"%(volume, target[0]) )
	os.system( "rm -rf DMG" )

def create_dmg_message( target, source, env):
	return "Creating DMG package"

def generate(env) :
	"""Add Builders and construction variables for qt to an Environment."""
	print "Lodading dmg tool..."
	env.Append( BUILDERS={'Dmg' : 
			env.Builder( action=env.Action(create_dmg, create_dmg_message ))
		} )

def exists(env) :
	return True