From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 23 May 2008 17:05:21 +0400 From: Alexey Tourbin To: ALT Linux Team development discussions Message-ID: <20080523130521.GG7750@solemn.turbinal> Mail-Followup-To: ALT Linux Team development discussions References: <4d6cc2f20805220737h7f4a07f0y4617b9aa37dfe793@mail.gmail.com> <4d6cc2f20805230149y261812e9g807db7479920790e@mail.gmail.com> <20080523103931.GC7750@solemn.turbinal> <200805231407.58319.ledest@gmail.com> <20080523112334.GD7750@solemn.turbinal> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cyV/sMl4KAhiehtf" Content-Disposition: inline In-Reply-To: Subject: Re: [devel] apt-python X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.10b3 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 May 2008 13:02:34 -0000 Archived-At: List-Archive: List-Post: --cyV/sMl4KAhiehtf Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 23, 2008 at 03:47:35PM +0400, Alexey Shabalin wrote: > 23 =CD=C1=D1 2008 =C7. 15:23 =D0=CF=CC=D8=DA=CF=D7=C1=D4=C5=CC=D8 Alexey = Tourbin =CE=C1=D0=C9=D3=C1=CC: > > =F1 =D4=C1=CB=D6=C5 =D0=CF=D3=CD=CF=D4=D2=C5=CC =CB=CF=C4 PackageKit, = =C9 =D5 =CD=C5=CE=D1 =D3=CC=CF=D6=C9=CC=CF=D3=D8 =D0=D2=C5=C4=D7=C1=D2=C9= =D4=C5=CC=D8=CE=CF=C5 > > =CD=CE=C5=CE=C9=C5, =DE=D4=CF =C4=C1=D6=C5 =C5=D3=CC=C9 =DC=D4=C9 =C2= =C1=CA=CE=C4=C9=CE=C7=C9 =D7 =D4=C5=CB=D5=DD=C5=CD =C9=C8 =D7=C9=C4=C5 =D0= =CF=DE=C9=CE=C9=D4=D8, =D4=CF > > PackageKit =D7=D3=A3 =D2=C1=D7=CE=CF =CE=C5 =DA=C1=D2=C1=C2=CF=D4=C1=C5= =D4. >=20 > =F6=C1=CC=D8. =E8=CF=D4=C5=CC=CF=D3=D8 =C2=D9 =C5=C7=CF =D7=C9=C4=C5=D4= =D8 =D7 =D3=C9=DA=C9=C6=C5 =D2=C1=C2=CF=D4=C1=C0=DD=C9=CD. backends/apt/helpers/aptBackend.py: 449 def install_files (self, inst_files): 450 ''' 451 Implement the {backend}-install_files functionality 452 Install the package containing the inst_file file 453 ''' 454 if not exists(inst_file): 455 self.error(ERROR_PACKAGE_NOT_FOUND,"Can't find %s"%inst= _file) 456 return 457 deb =3D DebPackage(inst_file) 458 deps =3D {} 459 for k in ["Depends","Recommends"]: 460 if not deb._sections.has_key(k): 461 continue 462 for items in apt_pkg.ParseDepends(deb[k]): 463 assert len(items) =3D=3D 1,"Can't handle or deps pr= operly yet" 464 (pkg,ver,comp) =3D items[0] 465 if not deps.has_key(pkg): 466 deps[pkg] =3D [] 467 deps[pkg].append((ver,comp)) 468 for n in deps.keys(): 469 p =3D Package(self,self._apt_cache[n],version=3Ddeps[n]) 470 if not p.isInstalled: 471 p.markInstall() 472 assert self._apt_cache.getChanges()=3D=3D[],"Don't handle i= nstall changes yet" 473 # FIXME: nasty hack. Need a better way in 474 ret =3D system("dpkg -i %s"%inst_file) 475 if ret!=3D0: 476 self.error(ERROR_UNKNOWN,"Can't install package") =F7 =CB=C1=D6=C4=CF=CD =DB=CB=C1=C6=D5 =C5=D3=D4=D8 =D3=D7=CF=CA =D3=CB=C5= =CC=C5=D4. =E5=D3=D4=D8 =D7=CF=CF=C2=DD=C5 =D3=CF=CD=CE=C5=CE=C9=D1, =DE=D4=CF =DC=D4= =CF=D4 =CB=CF=C4 =D2=C1=C2=CF=D4=C1=C5=D4 (=C4=C1=D6=C5 =D3 =C4=C5=C2=C9=C1= =CE=CF=D7=D3=CB=C9=CD =C1=D0=D4=CF=CD). =EF=C2=D2=C1=D4=C9=D4=C5 =D7=CE=C9=CD=C1=CE=C9=C5 =CE=C1 =D2=C1=DA=CE=C9=C3= =D5 =CD=C5=D6=C4=D5 inst_files =D7 =C1=D2=C7=D5=CD=C5=CE=D4=C5 =C9 inst_file =D7 =D4=C5=CC=C5 =C6=D5=CE=CB=C3=C9=C9. =F0=D2=CF=D3=D4=CF =D0=C9=D4=CF=CE= =CF=D4=D7=C1=CC=C9=D4 =D7 =CD=CF=CD=C5=CE=D4 =D7=D9=DA=CF=D7=C1 =DC=D4=CF= =C7=CF =CB=CF=C4=C1 =C9 =D7=D3=A3. =F7=D0=D2=CF=DE=C5=CD, =CD=CF=D6=CE=CF =CE=C1=C4=C5=D1=D4=D8=D3=D1, =DE=D4= =CF =DC=D4=CF=D4 =CB=CF=C4 =C2=D5=C4=C5=D4 =D7=D9=DA=D9=D7=C1=D4=D8=D3=D1 = =CE=C5 =D7=D3=D1=CB=C9=CA =D2=C1=DA. =FE=C5=C7=CF, =D4=C1=CB =D3=CB=C1=DA=C1=D4=D8, =F7=C1=CD =D6=C5=CC=C1=C0. --cyV/sMl4KAhiehtf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkg2wREACgkQfBKgtDjnu0YljACfSHCW891nfAs/xUfzyViiNkOg kHYAn1DBuqxo/h0wIa6AvCLJusWj/q+8 =Ej1G -----END PGP SIGNATURE----- --cyV/sMl4KAhiehtf--