+
    Ci=?                         ^ RI Ht ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIH	t	 ^ RI
Ht ^ RIHt RtRtRt]! RR	7       R
 t ! R R]P$                  4      t ! R R]P(                  P*                  ]4      tR# )    )GLibN)SourceEntry)DBusGMainLoop)SoftwarePropertieszcom.ubuntu.SoftwareProperties/T)set_as_defaultc                 R    \         P                  R 8  d   V P                  R4      # V # )3zutf-8)sysversionencode)strings   &P/usr/lib/python3/dist-packages/softwareproperties/dbus/SoftwarePropertiesDBus.py_to_unicoder   (   s"    [[3==!!M    c                       ] tR t^.tRtRtR# )PermissionDeniedByPolicyz6com.ubuntu.SoftwareProperties.PermissionDeniedByPolicy N)__name__
__module____qualname____firstlineno___dbus_error_name__static_attributes__r   r   r   r   r   .   s    Or   r   c                   H  a a ] tR t^1t oR+R ltV 3R ltV 3R lt]P                  P                  ]
RR7      R 4       t]P                  P                  ]
RR7      R 4       t]P                  P                  ]
RR7      R 4       t]P                  P                  ]
RR7      R	 4       t]P                  P                  ]
RR7      R
 4       t]P                  P!                  ]
RRRRR7      R,R l4       t]P                  P!                  ]
RRRRR7      R,R l4       t]P                  P!                  ]
RRRRR7      R,R l4       t]P                  P!                  ]
RRRRR7      R,R l4       t]P                  P!                  ]
RRRRR7      R,R l4       t]P                  P!                  ]
RRRRR7      R,R l4       t]P                  P!                  ]
RRRRR7      R,R l4       t]P                  P!                  ]
RRRRR7      R,R l4       t]P                  P!                  ]
RRRRR7      R,R l4       t]P                  P!                  ]
RRRRR7      R,R l4       t]P                  P!                  ]
RRRRR7      R,R l4       t]P                  P!                  ]
RRRRR7      R,R l4       tR tR t]P                  P!                  ]
RRRRR7      R,R l4       t]P                  P!                  ]
RRR RR7      R,R! l4       t ]P                  P!                  ]
RRR RR7      R,R" l4       t!]P                  P!                  ]
RRR RR7      R,R# l4       t"]P                  P!                  ]
RRRRR7      R,R$ l4       t#]P                  P!                  ]
RRRRR7      R,R% l4       t$]P                  P!                  ]
RRRRR7      R,R& l4       t%]P                  P!                  ]
RRRRR7      R,R' l4       t&]P                  P!                  ]
RRRRR7      R,R( l4       t'R) t(R*t)Vt*V ;t+# )-SoftwarePropertiesDBusc                6   \         P                  ! WVVR R7       RV n        RV n        \        P
                  P                  \        VR7      p\        P
                  P                  P                  W\        4       R V n
        \        P                  ! R4       R# )T)optionsdatadirrootdirdeb822N)buszwaiting for connections)r   __init__	dbus_infopolkitdbusserviceBusNameDBUS_INTERFACE_NAMEObject	DBUS_PATHenforce_polkitloggingdebug)selfr"   r   r   r    bus_names   &&&&& r   r#   SoftwarePropertiesDBus.__init__3   ss    ##D7,3D	B <<''(;'E$$TY?"/0r   c                L   < \         \        V `  4        V P                  4        R # N)superr   save_sourceslistSourcesListModifiedr/   	__class__s   &r   r5   'SoftwarePropertiesDBus.save_sourceslistB   s    $d<>  "r   c                L   < \         \        V `  4        V P                  4        R # r3   )r4   r   write_configConfigModifiedr7   s   &r   r;   #SoftwarePropertiesDBus.write_configE   s    $d8:r    )dbus_interface	signaturec                2    \         P                  ! R4       R# )/emit signal when the sources.list got modified zSourcesListModified signalNr-   r.   r/   s   &r   r6   *SoftwarePropertiesDBus.SourcesListModifiedJ   s     	23r   c                2    \         P                  ! R4       R# )rB   zConfigModified signalNrC   rD   s   &r   r<   %SoftwarePropertiesDBus.ConfigModifiedO   s     	-.r   c                2    \         P                  ! R4       R# )z+emit signal when the apt keys got modified zKeysModified signalNrC   rD   s   &r   KeysModified#SoftwarePropertiesDBus.KeysModifiedT   s     	+,r   c                2    \         P                  ! R4       R# )z5emit signal when the policykit authentication failed zAuth signalNrC   rD   s   &r   
AuthFailed!SoftwarePropertiesDBus.AuthFailedY   s     	m$r   c                2    \         P                  ! R4       R# )z'emit signal when adding a cdrom failed zCdrom scan failed signalNrC   rD   s   &r   CdromScanFailed&SoftwarePropertiesDBus.CdromScanFailed^   s     	01r   senderconn)sender_keywordconnection_keywordin_signatureout_signaturec                J    V P                  WR 4       V P                  4        R# *com.ubuntu.softwareproperties.applychangesN)_check_policykit_privilegerevertr/   rQ   rR   s   &&&r   RevertSoftwarePropertiesDBus.Reverte   s"     	''F	Hr   c                &    V P                  4        R # r3   )reload_sourceslistr\   s   &&&r   ReloadSoftwarePropertiesDBus.Reloadm   s     	!r   sc                ^    V P                  W#R 4       V P                  \        V4      4       R# rX   )rZ   enable_child_sourcer   r/   templaterQ   rR   s   &&&&r   EnableChildSource(SoftwarePropertiesDBus.EnableChildSourcet   s,     	''F	H  X!67r   c                ^    V P                  W#R 4       V P                  \        V4      4       R# rX   )rZ   disable_child_sourcer   rf   s   &&&&r   DisableChildSource)SoftwarePropertiesDBus.DisableChildSource|   s,     	''F	H!!+h"78r   c                ^    V P                  W#R 4       V P                  \        V4      4       R# rX   )rZ   enable_componentr   r/   	componentrQ   rR   s   &&&&r   EnableComponent&SoftwarePropertiesDBus.EnableComponent   s,     	''F	Hk)45r   c                ^    V P                  W#R 4       V P                  \        V4      4       R# rX   )rZ   disable_componentr   rp   s   &&&&r   DisableComponent'SoftwarePropertiesDBus.DisableComponent   s,     	''F	H{956r   c                J    V P                  WR 4       V P                  4        R# rX   )rZ   enable_source_code_sourcesr\   s   &&&r   EnableSourceCodeSources.SoftwarePropertiesDBus.EnableSourceCodeSources   s%     	''F	H'')r   c                j    V P                  WR 4       V P                  4        V P                  4        R# rX   )rZ   disable_source_code_sourcesr5   r\   s   &&&r   DisableSourceCodeSources/SoftwarePropertiesDBus.DisableSourceCodeSources   s1     	''F	H((*r   c                ^    V P                  W#R 4       V P                  \        V4      4       R# rX   )rZ   toggle_source_user   r/   sourcerQ   rR   s   &&&&r   ToggleSourceUse&SoftwarePropertiesDBus.ToggleSourceUse   s,     	''F	H{623r   ssbc                n    V P                  W4R 4       V P                  \        V4      \        V4      4      # rY   )rZ   replace_source_entryr   )r/   oldnewrQ   rR   s   &&&&&r   ReplaceSourceEntry)SoftwarePropertiesDBus.ReplaceSourceEntry   s;     	''F	H((k#.0 	0r   c                ^    V P                  W#R 4       V P                  \        V4      4       R# rX   )rZ   change_main_download_serverr   )r/   serverrQ   rR   s   &&&&r   ChangeMainDownloadServer/SoftwarePropertiesDBus.ChangeMainDownloadServer   s,     	''F	H((V)<=r   c                J    V P                  WR 4       V P                  4        R# rX   )rZ   _add_cdrom_sourcer\   s   &&&r   AddCdromSource%SoftwarePropertiesDBus.AddCdromSource   s%     	''F	H r   c                    \         P                  ! 4       pRRRRRRRRRRRRVP                  ,          .p\        P                  ! V4      p\
        P                  ! R	V P                  W14       R
# )zadd a (already inserted) cdrom z	apt-cdromaddz-ozDebug::aptcdrom=1zDebug::identcdrom=1zacquire::cdrom::AutoDetect=1zacquire::cdrom::NoMount=1zDir::Etc::sourcelist=%si  N)tempfileNamedTemporaryFilename
subprocessPopenr   timeout_add_wait_for_cdrom_scan_finish)r/   tmpcmdps   &   r   r   (SoftwarePropertiesDBus._add_cdrom_source   so    ))+ E(*30.9 S!d>>Gr   c                L   VP                  4       f   R# VP                  4       pV^ 8w  d   V P                  4        R# Rp\        VP                  4       F  pTpK  	  VR8w  d@   V P                  P
                  P                  ^ \        V4      4       V P                  4        R# )z<glib timeout helper to wait for the cdrom scanner to finish TFr>   )	pollrO   openr   sourceslistlistinsertr   set_modified_sourceslist)r/   r   r   reslinexs   &&&   r   r   2SoftwarePropertiesDBus._wait_for_cdrom_scan_finish   s     668ffh!8  "chhAD  2:!!((K,=>))+r   c                L    V P                  W#R 4       V P                  V4       R# rX   )rZ   set_popcon_pariticipation)r/   participatesrQ   rR   s   &&&&r   SetPopconPariticipation.SoftwarePropertiesDBus.SetPopconPariticipation   s'     	''F	H&&|4r   ic                L    V P                  W#R 4       V P                  V4       R# rX   )rZ   set_update_automation_levelr/   staterQ   rR   s   &&&&r   SetUpdateAutomationLevel/SoftwarePropertiesDBus.SetUpdateAutomationLevel   '     	''F	H((/r   c                L    V P                  W#R 4       V P                  V4       R# rX   )rZ   set_release_upgrades_policyr   s   &&&&r   SetReleaseUpgradesPolicy/SoftwarePropertiesDBus.SetReleaseUpgradesPolicy   r   r   c                ^    V P                  W#R 4       V P                  \        V4      4       R# rX   )rZ   set_update_intervalint)r/   daysrQ   rR   s   &&&&r   SetUpdateInterval(SoftwarePropertiesDBus.SetUpdateInterval  s+     	''F	H  T+r   c                ~    V P                  W#R 4       V P                  \        V4      4       V P                  4        R# rX   )rZ   add_source_from_liner   rI   )r/   
sourceLinerQ   rR   s   &&&&r   AddSourceFromLine(SoftwarePropertiesDBus.AddSourceFromLine  s8     	''F	H!!+j"9:r   c                ^    V P                  W#R 4       V P                  \        V4      4       R# rX   )rZ   remove_sourcer   r   s   &&&&r   RemoveSource#SoftwarePropertiesDBus.RemoveSource  s,     	''F	H;v./r   c                |    V P                  W#R 4       V P                  V4      pV'       d   V P                  4        V# r   )rZ   add_keyrI   )r/   pathrQ   rR   r   s   &&&& r   AddKeySoftwarePropertiesDBus.AddKey!  s;     	''F	Hll4 
r   c                |    V P                  W#R 4       V P                  V4      pV'       d   V P                  4        V# r   )rZ   add_key_from_datarI   )r/   keyDatarQ   rR   r   s   &&&& r   AddKeyFromData%SoftwarePropertiesDBus.AddKeyFromData,  s=     	''F	H$$W-
r   c                |    V P                  W#R 4       V P                  V4      pV'       d   V P                  4        V# r   )rZ   
remove_keyrI   )r/   keyidrQ   rR   r   s   &&&& r   	RemoveKey SoftwarePropertiesDBus.RemoveKey7  s;     	''F	Hooe$
r   c           
     f   Vf   Vf   R# V P                   '       g   R# V P                  f.   \        P                  ! VP	                  RRR4      R4      V n        V P                  P                  V4      pV P                  fA   \        P                  ! \        P                  ! 4       P	                  RRR4      R4      V n         V P                  P                  RR	\        P                  ! V^R
7      /3VRR/\        P                  ! ^4      RRR7      w  rVpT'       gE   \        P                  ! RYYC\!        T4      3,          4       T P#                  4        \%        T4      hR#   \        P                   d6   pTP                  R8X  d   RT n        T P                  YT4      u Rp?# h Rp?ii ; i)a  Verify that sender has a given PolicyKit privilege.

sender is the sender's (private) D-BUS name, such as ":1:42"
(sender_keyword in @dbus.service.methods). conn is
the dbus.Connection object (connection_keyword in
@dbus.service.methods). privilege is the PolicyKit privilege string.

This method returns if the caller is privileged, and otherwise throws a
PermissionDeniedByPolicy exception.
Nzorg.freedesktop.DBusz/org/freedesktop/DBus/BusFzorg.freedesktop.PolicyKit1z%/org/freedesktop/PolicyKit1/Authorityz$org.freedesktop.PolicyKit1.Authorityzsystem-bus-namer   )variant_levelr>   iX  )timeoutz)org.freedesktop.DBus.Error.ServiceUnknownzW_check_polkit_privilege: sender %s on connection %s pid %i is not authorized for %s: %s)r,   r$   r&   	Interface
get_objectGetConnectionUnixProcessIDr%   	SystemBusCheckAuthorizationStringUInt32DBusExceptionr   _check_polkit_privileger-   r.   strrL   r   )	r/   rQ   rR   	privilegepidis_auth_detailses	   &&&&     r   rZ   1SoftwarePropertiesDBus._check_policykit_privilegeC  s    >dl"""  >>!!^^DOO<R+U-45KMDNnn77? ;;..)9)D)D,7*@ 78DK	$(KK$B$B&VUV1W(XYBxQS %C %J!W MMs33w<@A BOO*955	  !! 	!!%PP"33F)LL	s%   AE& &F0;)F+$F0*F++F0)r$   r,   r%   )NNr   )NN),r   r   r   r   r#   r5   r;   r&   r'   signalr)   r6   r<   rI   rL   rO   methodr]   ra   rh   rl   rr   rv   rz   r~   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   rZ   r   __classdictcell____classcell__)r8   __classdict__s   @@r   r   r   1   sT    1#
 
\\(;rJ4 K4 
\\(;rJ/ K/ 
\\(;rJ- K- 
\\(;rJ% K% 
\\(;rJ2 K2 
\\,(0V&(  <<
 
\\,(0V&(  <"<" 
\\,(0V&)  =8=8
 
\\,(0V&)  =9=9
 
\\,(0V&)  =6=6
 
\\,(0V&)  =7=7
 
\\,(0V&(  <*<*
 
\\,(0V&(  < <  
\\,(0V&)  =4=4
 
\\,(0V&*#  ?0?0 
\\,(0V&(  <><> 
\\,(0V&(  <!<!
H * 
\\,(0V&)  =5=5
 
\\,(0V&)  =0=0
 
\\,(0V&)  =0=0
 
\\,(0V&)  =,=, 
\\,(0V&)  == 
\\,(0V&)  =0=0 
\\,(0V&)  >> 
\\,(0V&)  >> 
\\,(0V&)  >>06 06r   r   )gi.repositoryr   dbus.servicer&   r-   r   r   r   aptsources.sourceslistr   dbus.mainloop.glibr   %softwareproperties.SoftwarePropertiesr   DBUS_BUS_NAMEr+   r)   r   r   r   r'   r*   r   r   r   r   <module>r      sn   *      
 . , D/	5  T "Pt11 PB6T\\002D B6r   