Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Assign NameStore Num Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list Assign NameStore ListLoad Str Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str FunctionDef arguments args defaults kwarg body Return Call NameLoad Str TupleLoad NameLoad decorator_list Assign NameStore Call NameLoad keyword Str keyword Str keyword Str keyword Str keyword Str keyword Str keyword Str keyword Str keyword Str keyword Str keyword Str Assign NameStore ListLoad ListLoad Str ListLoad Str Str ListLoad Str ListLoad Str Str Assign NameStore ListLoad ListLoad Str ListLoad Str Str ListLoad Str ListLoad Str Str Expr Str FunctionDef arguments args NameParam defaults body Global identifier TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Num handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Pass TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareEq SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr body Return NameLoad orelse If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index Num Return NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Return NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Num handlers ExceptHandler type AttributeLoad NameLoad attr body Pass TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Pass Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Num handlers ExceptHandler body Pass Return decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore CompareEq Call AttributeLoad NameLoad attr Num TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If BoolOpAnd CompareNotEq SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr NameLoad body Raise NameLoad Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index NameLoad If CompareNotEq SubscriptLoad NameLoad Index NameLoad Num body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If BoolOpAnd CompareNotEq SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr NameLoad body Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareIn NameLoad NameLoad body Return NameLoad If CompareIsNot NameLoad NameLoad body If CompareIn BinOpAdd NameLoad NameLoad NameLoad body Return NameLoad If CompareEq Call AttributeLoad BinOpAdd NameLoad NameLoad attr Str NameLoad body If CompareIn BinOpAdd BinOpAdd Str NameLoad NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Global identifier identifier Assign NameStore Dict Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Dict Assign SubscriptStore NameLoad Index NameLoad AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad Num If Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad Str orelse If Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad Str orelse If Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad Str orelse If Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad Str orelse Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore Num If CompareIn Str AttributeLoad NameLoad attr body For NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Str body If CompareGt NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If CompareIn NameLoad NameLoad body AugAssignBitOr NameStore SubscriptLoad NameLoad Index NameLoad If CompareGt NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad kwarg body If CompareIs NameLoad NameLoad body Return If CompareNotIn NameLoad NameLoad body If BoolOpOr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return Assign NameStore BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd NameLoad CompareNotEq NameLoad Str body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad orelse Assign NameStore BinOpAdd Str NameLoad Assign NameStore NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Assign NameStore ListLoad Str Str NameLoad If BoolOpAnd CompareIn Str NameLoad CompareIsNot SubscriptLoad NameLoad Index Str NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Print BinOpMod Str TupleLoad IfExp CompareIs NameLoad NameLoad Str NameLoad NameLoad Print BinOpMod Str SubscriptLoad NameLoad Index NameLoad If BoolOpAnd CompareNotEq Call AttributeLoad NameLoad attr Num CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If CompareLt NameLoad Num body Return orelse Assign NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad Num body If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareIn Str NameLoad CompareIsNot SubscriptLoad NameLoad Index Str NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Num orelse If CompareNotEq NameLoad Num body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If CompareNotEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad If CompareNotEq NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad orelse Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Return decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Global identifier identifier Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num If BoolOpOr Call AttributeLoad NameLoad attr Str CompareIs NameLoad NameLoad body Pass orelse Assign NameStore BinOpMod Str TupleLoad NameLoad IfExp BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str NameLoad If NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad IfExp BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Str Str NameLoad orelse Assign NameStore BinOpMod Str TupleLoad IfExp Call AttributeLoad NameLoad attr Str Str Str NameLoad Assign NameStore Str TryExcept body Import alias Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad orelse If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad orelse If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad handlers ExceptHandler body Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpOr CompareGt NameLoad Num NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad If CompareGt NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call NameLoad NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call NameLoad NameLoad Assign NameStore NameLoad Assign NameStore Str If BoolOpOr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body Assign NameStore NameLoad orelse If Call AttributeLoad NameLoad attr body Assign NameStore NameLoad orelse If Call AttributeLoad NameLoad attr body Assign NameStore NameLoad orelse Assign NameStore NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad CompareNotEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str If BoolOpOr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call NameLoad NameLoad orelse If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Import alias TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad Raise NameLoad If Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler body Assign NameStore BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Raise Assign NameStore Call AttributeLoad NameLoad attr While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr BinOpMult Num Num If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Break Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num If CompareNotEq NameLoad Str body If CompareNotEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Num handlers ExceptHandler body Pass Assign NameStore NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad Str handlers ExceptHandler body Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call NameLoad NameLoad Str While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr BinOpMult Num Num If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Break Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad orelse If Call AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareNotEq SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr body Raise NameLoad Expr Call NameLoad NameLoad NameLoad Assign NameStore Str Assign NameStore Str orelse If Call AttributeLoad NameLoad attr body If CompareNotEq NameLoad Str body If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num attr orelse Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr If CompareNotEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Str orelse Assign NameStore Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If BoolOpAnd CompareEq SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Import alias TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad Raise NameLoad orelse If CompareNotEq SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index Num Raise NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad Assign NameStore Str orelse If Call AttributeLoad NameLoad attr body Assign NameStore BinOpAdd BinOpAdd NameLoad Str AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Pass TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareEq SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad TryExcept body Assign NameStore BinOpMult Num Num Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call NameLoad NameLoad Str While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Break Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Raise orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad SubscriptLoad NameLoad Index Num Raise NameLoad If CompareNotEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Assign NameStore Str Assign NameStore NameLoad If CompareIsNot NameLoad NameLoad body Return TupleLoad NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign NameStore Call NameLoad NameLoad Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad Return NameLoad orelse Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Global identifier identifier identifier Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad Assign NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Return NameLoad Assign NameStore NameLoad Assign NameStore NameLoad For NameStore NameLoad body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Str body Break If CompareEq AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Return NameLoad If CompareIn NameLoad NameLoad body If UnaryOpNot CompareIn SubscriptLoad NameLoad Index NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad NameLoad Index NameLoad Return NameLoad If CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If BoolOpOr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad orelse Assign NameStore Dict Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore ListLoad Assign NameStore ListLoad If CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareNotEq SubscriptLoad NameLoad Index NameLoad Str body Raise NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If BoolOpOr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad orelse Assign NameStore NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Dict If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Print BinOpMod Str TupleLoad NameLoad NameLoad If CompareGt NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore BoolOpOr BoolOpAnd BoolOpOr CompareIn AttributeLoad NameLoad attr NameLoad CompareIn AttributeLoad NameLoad attr NameLoad CompareIn AttributeLoad NameLoad attr NameLoad BoolOpOr CompareIn AttributeLoad NameLoad attr NameLoad CompareIn AttributeLoad NameLoad attr NameLoad CompareIn AttributeLoad NameLoad attr NameLoad BoolOpAnd BoolOpOr CompareIn AttributeLoad NameLoad attr NameLoad CompareIn AttributeLoad NameLoad attr NameLoad CompareIsNot NameLoad NameLoad Print BinOpMod Str NameLoad If NameLoad body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword Str If CompareIsNot NameLoad NameLoad body If CompareNotEq SubscriptLoad NameLoad Index NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad Return NameLoad If CompareIs NameLoad NameLoad body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad For NameStore NameLoad body If NameLoad body Assign NameStore BinOpAdd BinOpAdd NameLoad Str NameLoad orelse Assign NameStore BinOpAdd Str NameLoad If CompareEq Call NameLoad NameLoad NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body If BoolOpOr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If NameLoad body Assign NameStore BinOpAdd BinOpAdd NameLoad Str NameLoad orelse Assign NameStore BinOpAdd Str NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse If UnaryOpNot NameLoad body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword Str If CompareEq Call AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return NameLoad If CompareEq Call AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return NameLoad If CompareEq Call AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return NameLoad If CompareEq Call AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return NameLoad If UnaryOpNot NameLoad body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword Str If CompareIsNot NameLoad NameLoad body If CompareEq Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Return NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad NameLoad orelse If CompareEq Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return NameLoad If CompareEq NameLoad NameLoad body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword Str Assign NameStore ListLoad While CompareIsNot NameLoad NameLoad body Assign NameStore Str If CompareIn AttributeLoad NameLoad attr NameLoad body Assign NameStore SubscriptLoad NameLoad Index AttributeLoad NameLoad attr orelse If BoolOpAnd CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad CompareIn BinOpAdd Str AttributeLoad NameLoad attr NameLoad body Assign NameStore SubscriptLoad NameLoad Index BinOpAdd Str AttributeLoad NameLoad attr orelse If CompareIn BinOpAdd NameLoad AttributeLoad NameLoad attr NameLoad body Assign NameStore SubscriptLoad NameLoad Index BinOpAdd NameLoad AttributeLoad NameLoad attr orelse If CompareEq Call AttributeLoad BinOpAdd NameLoad AttributeLoad NameLoad attr attr Str NameLoad body If CompareIn BinOpAdd BinOpAdd Str NameLoad AttributeLoad NameLoad attr NameLoad body Assign NameStore SubscriptLoad NameLoad Index BinOpAdd BinOpAdd Str NameLoad AttributeLoad NameLoad attr orelse If CompareEq Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Continue If CompareIsNot NameLoad NameLoad body If BoolOpOr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareGt Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword Str If BoolOpAnd CompareIs NameLoad NameLoad CompareIsNot NameLoad NameLoad body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad orelse Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword Str Return NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore ListLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Return decorator_list FunctionDef arguments args NameParam NameParam defaults body Global identifier Assign NameStore NameLoad Return decorator_list FunctionDef arguments args NameParam NameParam defaults body Global identifier Assign NameStore NameLoad Return decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Assign AttributeStore NameLoad attr ListLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For TupleStore NameStore NameStore Call NameLoad NameLoad body If CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad keyword BinOpAdd NameLoad Num keyword NameLoad keyword NameLoad orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If CompareIsNot NameLoad NameLoad body Expr Call NameLoad keyword BinOpAdd NameLoad Num keyword NameLoad keyword AttributeLoad NameLoad attr If CompareIs Call NameLoad SubscriptLoad NameLoad Index NameLoad AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return NameLoad Return NameLoad decorator_list decorator_list
N/A N/A os N/A sys N/A errno N/A stat N/A json N/A tarfile N/A hashlib N/A logging N/A tempfile N/A Configuration N/A debug 0 N/A verbose False N/A log N/A N/A logging getLogger freenasOS.Installer InstallerConfigurationException N/A Exception N/A N/A N/A InstallerPackageNotFoundException N/A Exception N/A N/A N/A InstallerInsufficientSpaceException N/A Exception N/A N/A N/A InstallerUnknownFileTypeException N/A Exception N/A N/A N/A InstallerUnknownDeltaStyleException N/A Exception N/A N/A N/A N/A pkg_valid_archs N/A freebsd:9:x86:64 freebsd:10:x86:64 N/A PKG_NAME_KEY name N/A PKG_VERSION_KEY version N/A PKG_SCRIPTS_KEY scripts N/A PKG_FILES_KEY files N/A PKG_DIRECTORIES_KEY directories N/A PKG_DIRS_KEY dirs N/A PKG_REMOVED_FILES_KEY removed-files N/A PKG_REMOVED_DIRS_KEY removed-directories N/A PKG_PREFIX_KEY prefix N/A PKG_ARCH_KEY arch N/A PKG_DELTA_KEY delta-version N/A PKG_DELTA_VERSION_KEY PKG_VERSION_KEY N/A PKG_DELTA_STYLE_KEY style N/A PKG_MANIFEST_NAME +MANIFEST N/A PKG_SCRIPTS N/A pre-install install post-install pre-deinstall deinstall post-deinstall pre-upgrade upgrade post-upgrade pre-delta post-delta enum N/A N/A N/A enums N/A N/A N/A type Enum N/A enums N/A N/A PKG_SCRIPT_TYPES N/A enum PKG_SCRIPT_PRE_DEINSTALL pre-deinstall PKG_SCRIPT_DEINSTALL deinstall PKG_SCRIPT_POST_DEINSTALL post-deinstall PKG_SCRIPT_PRE_INSTALL pre-install PKG_SCRIPT_INSTALL install PKG_SCRIPT_POST_INSTALL post-install PKG_SCRIPT_PRE_UPGRADE pre-upgrade PKG_SCRIPT_UPGRADE upgrade PKG_SCRIPT_POST_UPGRADE post-upgrade PKG_SCRIPT_PRE_DELTA pre-delta PKG_SCRIPT_POST_DELTA post-delta N/A SCRIPT_INSTALL N/A N/A pre_install N/A install PRE-INSTALL N/A post_install N/A install POST-INSTALL N/A SCRIPT_UPGRADE N/A N/A pre_upgrade N/A upgrade PRE-UPGRADE N/A post_upgrade N/A upgrade POST-UPGRADE N/A 
This is how installs should be done, according to the pkgng wiki:
                        
Installing a package with pkgng
                        
        execute pre_install script if any exists
        execute install script with PRE-INSTALL argument
        extract files directly to the right place
        extract directories directly to the right place
        execute post_install script if any exists
        execute install script with POST-INSTALL arguments
    
Deinstalling a package with pkgng
        
        execute pre_deinstall script if any exists
        execute deinstall script with DEINSTALL argument
        removes files
        execute post_deinstall script if any exists
        execute install script with POST-DEINSTALL arguments
        extract directories

Upgrading a package with pkgng

A package can be in version 1: not upgrade aware, or in version 2: upgrade aware.
If both the installed package and the new package are upgrade aware:

        execute pre_upgrade script from the old package
        execute upgrade script with PRE-UPGRADE argument from the old package
        remove files from the old package
        remove directories from the old package
        extract files and directories from the new package
        execute post_upgrade script from the new package
        execute upgrade script with POST-UPGRADE argument from the new package
        
otherwise if falls back to the dumb way:

        deinstall the old package
        install the new one
                        
SEF:  This would require keeping old manifest file around.
Also, I don't think removing the files works too well with us.  Certainly
can't remove the directories from the base-os package!  I also do not see how
it works in the pkgng code.
 RemoveFile N/A N/A path N/A N/A N/A debug N/A N/A N/A N/A N/A os lchflags path 0 N/A N/A N/A N/A os error N/A e N/A N/A N/A N/A N/A N/A N/A os unlink path N/A N/A N/A N/A os error N/A e N/A N/A N/A N/A e N/A 0 N/A errno ENOENT N/A N/A True N/A N/A debug N/A N/A N/A N/A log debug N/A RemoveFile(%s):  errno = %d N/A path N/A e N/A 0 N/A False N/A N/A N/A N/A os path exists path N/A N/A N/A Exception N/A After removal, %s still exists path N/A True N/A RemoveDirectory N/A N/A path N/A N/A N/A st None N/A N/A N/A st N/A N/A os lstat path N/A N/A N/A N/A os error N/A N/A False N/A N/A N/A N/A N/A os lchflags path 0 N/A N/A N/A N/A os error N/A N/A N/A N/A N/A N/A N/A os rmdir path N/A N/A N/A N/A os error N/A N/A N/A st st_flags N/A N/A N/A N/A N/A N/A os lchflags path N/A st st_flags N/A N/A N/A N/A os error N/A N/A N/A False N/A True N/A MakeDirs N/A N/A dir N/A N/A N/A N/A N/A N/A N/A os makedirs dir 493 N/A N/A N/A N/A N/A N/A SetPosix N/A N/A path meta N/A N/A N/A amroot N/A N/A N/A os geteuid 0 N/A N/A N/A N/A N/A os lchown path N/A meta N/A TAR_UID_KEY N/A meta N/A TAR_GID_KEY N/A N/A N/A N/A os error N/A e N/A N/A N/A N/A N/A e N/A 0 N/A errno EPERM amroot N/A N/A e N/A N/A N/A os lchmod path N/A meta N/A TAR_MODE_KEY N/A N/A N/A meta N/A TAR_FLAGS_KEY 0 N/A N/A N/A N/A N/A N/A os lchflags path N/A meta N/A TAR_FLAGS_KEY N/A N/A N/A N/A os error N/A e N/A N/A N/A N/A N/A e N/A 0 N/A errno EPERM amroot N/A N/A e N/A EntryInDictionary N/A N/A name mDict prefix N/A N/A N/A N/A name mDict N/A N/A True N/A N/A prefix None N/A N/A N/A N/A prefix name mDict N/A N/A True N/A N/A N/A N/A N/A prefix name startswith / False N/A N/A N/A N/A N/A / prefix name mDict N/A N/A True N/A False N/A N/A TAR_UID_KEY uid N/A TAR_GID_KEY gid N/A TAR_MODE_KEY mode N/A TAR_FLAGS_KEY flags N/A TAR_TYPE_KEY type GetTarMeta N/A N/A ti N/A N/A N/A debug verbose N/A ext_keys N/A nodump sappnd schg sunlnk uchg N/A stat UF_NODUMP N/A stat SF_APPEND N/A stat SF_IMMUTABLE N/A stat SF_NOUNLINK N/A stat UF_IMMUTABLE N/A rv N/A N/A N/A rv N/A TAR_UID_KEY N/A ti uid N/A N/A rv N/A TAR_GID_KEY N/A ti gid N/A N/A rv N/A TAR_MODE_KEY N/A N/A stat S_IMODE N/A int N/A ti mode N/A N/A rv N/A TAR_FLAGS_KEY 0 N/A N/A N/A ti isfile N/A N/A N/A rv N/A TAR_TYPE_KEY file N/A N/A N/A N/A ti isdir N/A N/A N/A rv N/A TAR_TYPE_KEY dir N/A N/A N/A N/A ti issym N/A N/A N/A rv N/A TAR_TYPE_KEY slink N/A N/A N/A N/A ti islnk N/A N/A N/A rv N/A TAR_TYPE_KEY link N/A N/A N/A InstallerUnknownFileTypeException N/A Unknown tarinfo type %s N/A ti type N/A N/A N/A ti pax_headers None N/A N/A flags 0 N/A N/A SCHILY.fflags N/A ti pax_headers N/A N/A k N/A N/A N/A N/A ti pax_headers N/A SCHILY.fflags split , N/A N/A N/A debug 1 N/A N/A N/A N/A log debug N/A flag %s k N/A N/A k ext_keys N/A N/A flags N/A ext_keys N/A k N/A N/A debug 1 N/A N/A N/A N/A log debug N/A flags was %s, value = %o N/A N/A N/A ti pax_headers N/A SCHILY.fflags flags N/A N/A rv N/A TAR_FLAGS_KEY flags N/A rv N/A RunPkgScript N/A N/A scripts type root N/A None kwargs N/A N/A N/A scripts None N/A N/A N/A N/A type scripts N/A N/A N/A verbose debug N/A N/A N/A N/A log debug N/A No %s script to run type N/A N/A scriptName N/A /%d-%s N/A N/A N/A os getpid type N/A N/A root N/A root N/A N/A scriptPath N/A %s%s N/A root scriptName N/A N/A scriptName N/A /tmp scriptName N/A scriptPath scriptName N/A N/A open scriptPath w f N/A N/A N/A N/A f write N/A scripts N/A type N/A args N/A sh -x scriptName N/A N/A N/A SCRIPT_ARG kwargs N/A N/A kwargs N/A SCRIPT_ARG None N/A N/A N/A N/A args append N/A kwargs N/A SCRIPT_ARG N/A N/A script (chroot to %s):  %s
----------- N/A N/A N/A root None / root args N/A N/A %s
-------------- N/A scripts N/A type N/A N/A N/A N/A N/A os geteuid 0 N/A root None N/A N/A N/A N/A log error N/A Installation root is set, and process is not root.  Cannot run script %s type N/A N/A debug 4 N/A N/A N/A N/A pid N/A N/A os fork N/A N/A pid 0 N/A N/A root N/A N/A N/A N/A os chroot root N/A N/A N/A PKG_PREFIX kwargs N/A N/A kwargs N/A PKG_PREFIX None N/A N/A N/A N/A os environ N/A PKG_PREFIX N/A kwargs N/A PKG_PREFIX N/A N/A N/A os execv /bin/sh args N/A N/A N/A sys exit 1 N/A N/A N/A pid -1 N/A N/A N/A tpid status N/A N/A os wait N/A N/A tpid pid N/A N/A N/A N/A log error N/A What?  I waited for process %d and I got %d instead! N/A pid tpid N/A N/A status 0 N/A N/A N/A N/A log error N/A Sub procss exited with status %#x status N/A N/A N/A N/A log error Huh?  Got -1 from os.fork and no exception? N/A N/A N/A os unlink scriptPath N/A N/A ExtractEntry N/A N/A tf entry root prefix mFileHash N/A None None N/A N/A debug verbose N/A TYPE_DIR dir N/A TYPE_FILE file N/A TYPE_SLNK slink N/A TYPE_OTHER unknown N/A orig_type None N/A new_type None N/A fileName N/A entry name N/A N/A N/A fileName startswith ./ N/A N/A fileName N/A fileName N/A 2 N/A N/A N/A N/A fileName startswith / N/A prefix None N/A N/A N/A N/A fileName N/A %s%s%s N/A prefix N/A N/A N/A N/A prefix endswith / N/A N/A N/A entry name startswith / / fileName N/A root N/A N/A full_path N/A %s%s%s N/A root N/A N/A N/A N/A root endswith / N/A N/A fileName startswith / / fileName N/A N/A full_path N/A %s%s N/A N/A N/A N/A fileName startswith / / fileName N/A root N/A N/A N/A stat N/A m N/A N/A N/A os lstat full_path st_mode N/A N/A N/A stat S_ISDIR m N/A N/A orig_type TYPE_DIR N/A N/A N/A N/A stat S_ISREG m N/A N/A orig_type TYPE_FILE N/A N/A N/A N/A stat S_ISLNK m N/A N/A orig_type TYPE_SLNK N/A N/A orig_type TYPE_OTHER N/A N/A N/A N/A orig_type None N/A dirname N/A N/A N/A os path dirname full_path N/A N/A N/A debug 0 verbose N/A N/A N/A N/A log debug N/A %s:  will be extracted as %s N/A N/A entry name full_path N/A N/A debug 2 N/A N/A N/A N/A log debug N/A entry = %s entry N/A meta N/A GetTarMeta entry N/A N/A N/A N/A N/A os path isdir dirname N/A N/A N/A MakeDirs dirname N/A type None N/A hash N/A N/A N/A N/A entry isfile N/A N/A entry islnk N/A N/A new_type TYPE_FILE N/A N/A N/A N/A entry isdir N/A N/A new_type TYPE_DIR N/A N/A N/A N/A entry issym N/A N/A new_type TYPE_SLNK N/A N/A new_type TYPE_OTHER N/A N/A N/A orig_type None N/A orig_type new_type N/A N/A N/A N/A log debug N/A Original type = %s, new type = %s, path = %s N/A orig_type new_type full_path N/A N/A N/A log debug Removing original entry N/A N/A N/A N/A N/A os path islink full_path N/A N/A N/A os path isfile full_path N/A N/A N/A RemoveFile full_path N/A N/A N/A N/A N/A os path isdir full_path N/A N/A shutil N/A N/A N/A N/A N/A shutil rmtree full_path N/A N/A N/A BaseException N/A e N/A N/A N/A N/A log error N/A Couldn't remove old directory %s: %s N/A full_path N/A str e N/A e N/A N/A N/A entry isfile N/A N/A fileData N/A N/A tf extractfile entry N/A N/A N/A temp_entry N/A N/A tempfile TemporaryFile dir N/A N/A N/A os path dirname full_path N/A N/A N/A N/A s N/A Cannot create temporary file in %s N/A N/A N/A os path dirname full_path N/A N/A N/A log error s N/A N/A hash N/A N/A hashlib sha256 N/A True N/A N/A d N/A N/A fileData read N/A 1024 1024 N/A d N/A N/A N/A N/A hash update d N/A N/A N/A temp_entry write d N/A N/A N/A hash N/A N/A hash hexdigest N/A N/A N/A temp_entry seek 0 N/A N/A mFileHash - N/A N/A N/A hash mFileHash N/A N/A N/A N/A log error N/A %s hash does not match manifest N/A entry name N/A type file N/A N/A N/A N/A N/A os lchflags full_path 0 N/A N/A N/A N/A N/A newfile None N/A N/A N/A f N/A open full_path w N/A N/A N/A N/A newfile N/A full_path .new N/A f N/A open newfile w N/A True N/A N/A d N/A N/A temp_entry read N/A 1024 1024 N/A d N/A N/A N/A N/A f write d N/A N/A N/A N/A N/A f close N/A N/A N/A temp_entry close N/A N/A newfile None N/A N/A N/A N/A N/A N/A os rename newfile full_path N/A N/A N/A N/A N/A N/A os rename full_path N/A %s.old full_path N/A N/A N/A os rename newfile full_path N/A N/A SetPosix full_path meta N/A N/A N/A N/A entry isdir N/A N/A N/A N/A N/A N/A os makedirs full_path N/A N/A N/A N/A os error N/A e N/A N/A N/A N/A e N/A 0 N/A errno EEXIST N/A N/A e N/A N/A SetPosix full_path meta N/A type dir N/A hash N/A N/A N/A N/A entry issym N/A N/A N/A mFileHash - N/A N/A N/A N/A N/A entry linkname startswith / N/A N/A hash N/A N/A N/A N/A hashlib sha256 N/A N/A entry linkname N/A 1 hexdigest N/A N/A hash N/A N/A N/A N/A hashlib sha256 N/A entry linkname hexdigest N/A N/A hash mFileHash N/A N/A N/A N/A log error N/A %s hash does not match manifest N/A entry name N/A hash N/A N/A hash - N/A N/A N/A N/A N/A os unlink full_path N/A N/A N/A N/A os error N/A e N/A N/A N/A N/A N/A e N/A 0 N/A errno EPERM N/A N/A N/A os path isdir full_path N/A N/A shutil N/A N/A N/A N/A N/A shutil rmtree full_path N/A N/A N/A BaseException N/A e2 N/A N/A N/A N/A log error N/A Couldn't rmtree %s: %s N/A full_path N/A str e2 N/A e2 N/A N/A N/A N/A e N/A 0 N/A errno ENOENT N/A N/A N/A N/A log error N/A Couldn't unlink %s: %s N/A full_path N/A e N/A 0 N/A e N/A N/A N/A os symlink N/A entry linkname full_path N/A N/A SetPosix full_path meta N/A type slink N/A N/A N/A N/A entry islnk N/A N/A source_file N/A N/A root / N/A entry linkname N/A N/A N/A st N/A N/A os lstat source_file N/A N/A N/A os lchflags source_file 0 N/A N/A N/A N/A N/A os lchflags full_path 0 N/A N/A N/A os unlink full_path N/A N/A N/A N/A N/A N/A N/A N/A N/A os link source_file full_path N/A N/A N/A N/A os error N/A e N/A N/A N/A N/A e N/A 0 N/A errno EXDEV N/A N/A N/A N/A log debug N/A Unable to link %s -> %s, trying a copy N/A source_file full_path N/A N/A N/A kBufSize N/A 1024 1024 N/A source N/A open source_file rb N/A dest N/A open full_path wb N/A True N/A N/A buffer N/A N/A source read kBufSize N/A buffer N/A N/A N/A N/A dest write buffer N/A N/A N/A N/A N/A os lchmod full_path N/A st st_mode N/A N/A N/A N/A N/A N/A log error N/A Couldn't copy %s to %s N/A source_file full_path N/A N/A N/A N/A N/A log error N/A Couldn't link %s to %s: %s N/A source_file full_path N/A e N/A 0 N/A e N/A N/A N/A st st_flags 0 N/A N/A N/A N/A os lchflags source_file N/A st st_flags N/A N/A N/A N/A os error N/A e N/A N/A N/A N/A log error N/A Could not link %s to %s: %s N/A source_file full_path N/A str e N/A N/A N/A sys exit 1 N/A type file N/A hash mFileHash N/A N/A type None N/A N/A N/A fileName type hash N/A meta N/A TAR_UID_KEY N/A meta N/A TAR_GID_KEY N/A meta N/A TAR_FLAGS_KEY N/A meta N/A TAR_MODE_KEY N/A N/A None N/A install_path N/A N/A pkgfile dest N/A N/A N/A N/A N/A f N/A open pkgfile r N/A N/A N/A Exception N/A err N/A N/A N/A N/A log error N/A Cannot open package file %s: %s N/A pkgfile N/A str err N/A False N/A N/A N/A install_file f dest N/A install_file N/A N/A pkgfile dest N/A N/A N/A debug verbose dryrun N/A prefix None N/A pkgdb N/A N/A Configuration PackageDB dest N/A pkgScripts None N/A upgrade_aware False N/A N/A N/A t N/A N/A tarfile open fileobj pkgfile N/A N/A N/A Exception N/A err N/A N/A N/A N/A log error N/A Could not open package file %s: %s N/A N/A pkgfile name N/A str err N/A False N/A member None N/A mjson None N/A member t N/A N/A N/A N/A N/A N/A member name startswith + N/A N/A N/A N/A N/A member name PKG_MANIFEST_NAME N/A N/A manifest N/A N/A t extractfile member N/A mjson N/A N/A json load manifest N/A N/A N/A manifest close N/A N/A mjson None N/A N/A N/A N/A log error N/A Could not find manifest in package file %s N/A pkgfile name N/A False N/A N/A PKG_ARCH_KEY mjson N/A N/A N/A N/A N/A mjson N/A PKG_ARCH_KEY pkg_valid_archs N/A N/A N/A N/A log error N/A Architecture %s is not valid N/A mjson N/A PKG_ARCH_KEY N/A False N/A N/A PKG_PREFIX_KEY mjson N/A N/A prefix N/A mjson N/A PKG_PREFIX_KEY N/A N/A verbose debug N/A N/A N/A N/A log debug N/A prefix = %s prefix N/A N/A PKG_SCRIPTS_KEY mjson N/A N/A pkgScripts N/A mjson N/A PKG_SCRIPTS_KEY N/A N/A pkgScripts N/A N/A pkgName N/A mjson N/A PKG_NAME_KEY N/A pkgVersion N/A mjson N/A PKG_VERSION_KEY N/A pkgDeletedFiles N/A N/A pkgDeletedDirs N/A N/A N/A PKG_DELTA_KEY mjson N/A N/A pkgDeltaDict N/A mjson N/A PKG_DELTA_KEY N/A N/A N/A pkgDeltaDict N/A PKG_DELTA_STYLE_KEY file N/A N/A InstallerUnknownDeltaStyleException N/A pkgDeltaVersion N/A pkgDeltaDict N/A PKG_DELTA_VERSION_KEY N/A N/A PKG_REMOVED_FILES_KEY mjson N/A N/A pkgDeletedFiles N/A mjson N/A PKG_REMOVED_FILES_KEY N/A N/A PKG_REMOVED_DIRS_KEY mjson N/A N/A pkgDeletedDirs N/A mjson N/A PKG_REMOVED_DIRS_KEY N/A N/A verbose debug N/A N/A N/A N/A log debug N/A Deleted files = %s, deleted dirs = %s N/A pkgDeletedFiles pkgDeletedDirs N/A N/A pkgDeltaVersion None N/A mfiles N/A mjson N/A PKG_FILES_KEY N/A mdirs N/A N/A N/A PKG_DIRECTORIES_KEY mjson N/A N/A N/A N/A mdirs update N/A mjson N/A PKG_DIRECTORIES_KEY N/A N/A PKG_DIRS_KEY mjson N/A N/A N/A N/A mdirs update N/A mjson N/A PKG_DIRS_KEY N/A N/A %s-%s N/A pkgName pkgVersion N/A N/A debug 1 N/A N/A N/A N/A log debug N/A installation target = %s dest N/A old_pkg N/A N/A pkgdb FindPackage pkgName N/A N/A old_pkg None N/A N/A old_scripts N/A N/A pkgdb FindScriptForPackage pkgName N/A N/A old_scripts None N/A N/A upgrade_aware N/A N/A N/A N/A N/A PKG_SCRIPT_TYPES PKG_SCRIPT_PRE_UPGRADE old_scripts N/A N/A PKG_SCRIPT_TYPES PKG_SCRIPT_UPGRADE old_scripts N/A N/A PKG_SCRIPT_TYPES PKG_SCRIPT_POST_UPGRADE old_scripts N/A N/A N/A PKG_SCRIPT_TYPES PKG_SCRIPT_PRE_UPGRADE pkgScripts N/A N/A PKG_SCRIPT_TYPES PKG_SCRIPT_UPGRADE pkgScripts N/A N/A PKG_SCRIPT_TYPES PKG_SCRIPT_POST_UPGRADE pkgScripts N/A N/A N/A N/A PKG_SCRIPT_TYPES PKG_SCRIPT_PRE_DELTA pkgScripts N/A N/A PKG_SCRIPT_TYPES PKG_SCRIPT_POST_DELTA pkgScripts N/A pkgDeltaVersion None N/A N/A upgrade_aware = %s upgrade_aware N/A upgrade_aware N/A N/A N/A RunPkgScript old_scripts N/A PKG_SCRIPT_TYPES PKG_SCRIPT_PRE_UPGRADE dest PKG_PREFIX prefix N/A N/A RunPkgScript old_scripts N/A PKG_SCRIPT_TYPES PKG_SCRIPT_UPGRADE dest PKG_PREFIX prefix SCRIPT_ARG PRE-UPGRADE N/A N/A pkgDeltaVersion None N/A N/A N/A N/A old_pkg N/A pkgName pkgDeltaVersion N/A N/A N/A N/A log error N/A Delta package %s->%s cannot upgrade current version %s N/A pkgDeltaVersion pkgVersion N/A old_pkg N/A pkgName N/A False N/A N/A dest None N/A N/A N/A RunPkgScript pkgScripts N/A PKG_SCRIPT_TYPES PKG_SCRIPT_PRE_DELTA dest PKG_PREFIX prefix N/A file pkgDeletedFiles N/A N/A dest N/A N/A full_path N/A N/A dest / file N/A N/A full_path N/A / file N/A N/A N/A RemoveFile full_path False N/A N/A debug N/A N/A N/A N/A log debug N/A Could not remove file %s file N/A N/A N/A pkgdb RemoveFileEntry file N/A dir pkgDeletedDirs N/A N/A N/A verbose debug N/A N/A N/A N/A log debug N/A Attempting to remove directory %s dir N/A dest N/A N/A full_path N/A N/A dest / dir N/A N/A full_path N/A / dir N/A N/A RemoveDirectory full_path N/A N/A N/A pkgdb RemoveFileEntry dir N/A N/A N/A upgrade_aware N/A N/A N/A RunPkgScript old_scripts N/A PKG_SCRIPT_TYPES PKG_SCRIPT_PRE_DEINSTALL dest PKG_PREFIX prefix N/A N/A RunPkgScript old_scripts N/A PKG_SCRIPT_TYPES PKG_SCRIPT_DEINSTALL dest PKG_PREFIX prefix SCRIPT_ARG DEINSTALL N/A N/A N/A N/A pkgdb RemovePackageFiles pkgName False N/A N/A N/A N/A log error N/A Could not remove files from package %s pkgName N/A False N/A N/A N/A N/A pkgdb RemovePackageDirectories pkgName False N/A N/A N/A N/A log error N/A Could not remove directories from package %s pkgName N/A False N/A N/A N/A N/A pkgdb RemovePackageScripts pkgName False N/A N/A N/A N/A log error N/A Could not remove scripts for package %s pkgName N/A False N/A N/A N/A N/A pkgdb RemovePackage pkgName False N/A N/A N/A N/A log error N/A Could not remove package %s from database pkgName N/A False N/A N/A upgrade_aware N/A N/A N/A RunPkgScript old_scripts N/A PKG_SCRIPT_TYPES PKG_SCRIPT_POST_DEINSTALL dest PKG_PREFIX prefix N/A N/A RunPkgScript old_scripts N/A PKG_SCRIPT_TYPES PKG_SCRIPT_INSTALL dest PKG_PREFIX prefix SCRIPT_ARG POST-DEINSTALL N/A N/A pkgDeltaVersion None N/A N/A N/A N/A N/A pkgdb UpdatePackage pkgName pkgDeltaVersion pkgVersion pkgScripts False N/A N/A N/A N/A log error N/A Could not update package from %s to %s in database N/A pkgDeltaVersion pkgVersion N/A False N/A N/A N/A log debug N/A Updated package %s from %s to %s in database N/A pkgName pkgDeltaVersion pkgVersion N/A N/A N/A N/A N/A pkgdb AddPackage pkgName pkgVersion pkgScripts False N/A N/A N/A N/A log debug N/A Could not add package %s to database pkgName N/A False N/A N/A upgrade_aware False N/A N/A N/A RunPkgScript pkgScripts N/A PKG_SCRIPT_TYPES PKG_SCRIPT_PRE_INSTALL dest PKG_PREFIX prefix N/A N/A RunPkgScript pkgScripts N/A PKG_SCRIPT_TYPES PKG_SCRIPT_INSTALL dest PKG_PREFIX prefix SCRIPT_ARG PRE-INSTALL N/A pkgFiles N/A N/A N/A member None N/A N/A mFileHash - N/A N/A N/A member name mfiles N/A N/A mFileHash N/A mfiles N/A N/A member name N/A N/A N/A N/A N/A N/A N/A member name startswith / False N/A N/A / N/A member name mfiles N/A N/A mFileHash N/A mfiles N/A N/A / N/A member name N/A N/A N/A N/A prefix N/A member name mfiles N/A N/A mFileHash N/A mfiles N/A N/A prefix N/A member name N/A N/A N/A N/A N/A N/A prefix N/A member name startswith / False N/A N/A N/A N/A N/A / prefix N/A member name mfiles N/A N/A mFileHash N/A mfiles N/A N/A N/A / prefix N/A member name N/A N/A N/A N/A EntryInDictionary N/A member name mdirs prefix False N/A N/A member N/A N/A t next N/A N/A N/A pkgDeltaVersion None N/A N/A N/A verbose debug N/A N/A N/A N/A log debug N/A Extracting %s from delta package N/A member name N/A list N/A ExtractEntry t member dest prefix mFileHash N/A N/A list None N/A N/A N/A N/A pkgFiles append N/A N/A pkgName list N/A member N/A N/A t next N/A N/A N/A len pkgFiles 0 N/A N/A N/A N/A pkgdb AddFilesBulk pkgFiles N/A upgrade_aware N/A N/A N/A RunPkgScript pkgScripts N/A PKG_SCRIPT_TYPES PKG_SCRIPT_POST_UPGRADE dest PKG_PREFIX prefix N/A N/A RunPkgScript pkgScripts N/A PKG_SCRIPT_TYPES PKG_SCRIPT_UPGRADE dest PKG_PREFIX prefix SCRIPT_ARG POST-UPGRADE N/A N/A N/A dest None N/A pkgDeltaVersion None N/A N/A N/A RunPkgScript pkgScripts N/A PKG_SCRIPT_TYPES PKG_SCRIPT_POST_DELTA dest PKG_PREFIX prefix N/A N/A N/A RunPkgScript pkgScripts N/A PKG_SCRIPT_TYPES PKG_SCRIPT_POST_INSTALL dest PKG_PREFIX prefix N/A N/A RunPkgScript pkgScripts N/A PKG_SCRIPT_TYPES PKG_SCRIPT_INSTALL dest PKG_PREFIX prefix SCRIPT_ARG POST-INSTALL N/A True N/A Installer N/A object N/A N/A _root None N/A _conf None N/A _manifest None N/A _packages N/A __init__ N/A N/A self config manifest root N/A None None None N/A N/A N/A self _conf config N/A N/A self _manifest manifest N/A N/A root None N/A N/A N/A self _root root N/A N/A N/A self _conf None N/A N/A N/A self _conf N/A N/A Configuration Configuration N/A N/A N/A self _manifest None N/A N/A N/A self _manifest N/A N/A N/A self _conf SystemManifest N/A N/A N/A self _manifest None N/A N/A N/A InstallerConfigurationException No manifest file N/A N/A SetDebug N/A N/A self level N/A N/A N/A debug N/A debug level N/A N/A SetVerbose N/A N/A self b N/A N/A N/A verbose N/A verbose b N/A N/A GetPackages N/A N/A self pkgList handler N/A None None N/A N/A N/A self _packages N/A N/A N/A pkgList None N/A N/A pkgList N/A N/A N/A self _manifest Packages N/A N/A i pkg N/A enumerate pkgList N/A N/A N/A handler None N/A N/A get_file_handler N/A handler index N/A i 1 pkg pkg pkgList pkgList N/A N/A get_file_handler None N/A pkgFile N/A N/A N/A self _conf FindPackageFile pkg handler get_file_handler N/A N/A pkgFile None N/A N/A N/A InstallerPackageNotFoundException N/A %s-%s N/A N/A N/A pkg Name N/A N/A pkg Version N/A N/A N/A N/A self _packages append N/A N/A N/A pkg Name pkgFile N/A True N/A InstallPackages N/A N/A self progressFunc handler N/A None None N/A N/A N/A i pkg N/A enumerate N/A self _packages N/A N/A pkgname pkg N/A N/A N/A N/A log debug N/A Installing package %s pkg N/A N/A handler None N/A N/A N/A handler index N/A i 1 name pkgname packages N/A self _packages N/A N/A N/A install_file N/A pkg N/A pkgname N/A self _root False N/A N/A N/A N/A log error N/A Unable to install package %s pkgname N/A False N/A True N/A N/A