From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sat, 18 Jul 2009 12:40:59 +0400 From: Alexey Tourbin To: devel@lists.altlinux.org Message-ID: <20090718084059.GA11322@altlinux.org> Mail-Followup-To: devel@lists.altlinux.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3V7upXqbjpZ4EhLz" Content-Disposition: inline Subject: [devel] hasher 1.3.14 - remote repo cache X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 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: Sat, 18 Jul 2009 08:41:09 -0000 Archived-At: List-Archive: List-Post: --3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Fri Jul 17 2009 Alexey Tourbin 1.3.14-alt1 - hsh-rpmi-print-files: New helper program, to replace 'apt-get --print-uri= s' with 'apt-get -o RPM::PM=3Dexternal -o Dir::Bin::rpm=3Dhsh-rpmi-print-fil= es'. - hsh-sh-functions.in (print_uris): Updated for hsh-rpmi-print-files. - FAQ, README: Discarded remote repo limitations. * Fri Jul 17 2009 Alexey Tourbin 1.3.13-alt1 - mkaptbox: Eliminated read_apt_config() usage. - hsh-sh-functions.in (read_apt_config): Removed. - hsh-sh-cache-contents-functions: Set pkglists_dir from Dir::State::lists. * Wed Jul 15 2009 Alexey Tourbin 1.3.12-alt1 - hsh-sh-cache-contents-functions: Reimplemented contents index routines. - Contents index is now generated from apt pkglist files. - Added /usr/lib/kde4bin to contents_index_bin directories. - Disabled contents_index_all. * Thu May 07 2009 Dmitry V. Levin 1.3.11-alt1 =F1 =D0=D2=C5=C4=D0=D2=C9=CE=D1=CC =D2=D1=C4 =CD=C5=D2, =CE=C1=D0=D2=C1=D7= =CC=C5=CE=CE=D9=C8 =CE=C1 =D5=CC=D5=D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7 =C8=C5=DB=C5=D2 =C9=D3= =D0=CF=CC=D8=DA=CF=D7=C1=CC =C4=CC=D1 =D0=CF=D2=CF=D6=C4=C5=CE=C9=D1 =DA=C1= =D7=C9=D3=C9=CD=CF=D3=D4=C5=CA =C6=C1=CA=CC=D9 contents_index, =CB=CF=D4=CF=D2=D9=C5 =C4=CF=D3=D4=D5=D0=CE=D9 =D4=CF=CC=D8= =CB=CF =CE=C1 =CC=CF=CB=C1=CC=D8=CE=CF=CD =D2=C5=D0=CF=DA=C9=D4=CF=D2=C9=C9= (=D7 =D7=C9=C4=C5 =CF=D4=C4=C5=CC=D8=CE=D9=C8 =C6=C1=CA=CC=CF=D7). Contents index -- =DC=D4= =CF =C9=CE=C4=C5=CB=D3 =C6=C1=CA=CC=CF=D7 =D7 =D2=C5=D0=CF=DA=C9=D4=CF=D2= =C9=C9, =CB =CB=C1=CB=C9=CD =D0=C1=CB=C5=D4=C1=CD =DC=D4=C9 =C6=C1=CA=CC=D9 =CF=D4=CE= =CF=D3=D1=D4=D3=D1. Contents index =C9=D3=D0=CF=CC=D8=DA=CF=D7=C1=CC=D3=D1= =D7 =C4=D7=D5=C8 =D3=CC=D5=DE=C1=D1=C8: =C4=CC=D1 =CF=D4=CF=C2=D2=C1=D6=C5=CE=C9=D1 =D0=D5= =D4=C5=CA =D7 =CE=C1=DA=D7=C1=CE=C9=D1 =D0=C1=CB=C5=D4=CF=D7 (contents_inde= x_all) =C9 =C4=CC=D1 =D0=CF=C9=D3=CB=C1 =CB=CF=CD=C1=CE=C4 =C9=DA shell-=D3=CB=D2=C9= =D0=D4=CF=D7 =D0=CF =CB=C1=D4=C1=CC=CF=C7=C1=CD PATH (contents_index_bin). contents_index_all =D4=C5=D0=C5=D2=D8 =CE=C5 =C9=D3=D0=CF=CC=D8=DA=D5=C5=D4= =D3=D1 (=D7 =D0=CF=D3=CC=C5=C4=CE=C9=C8 =D2=C5=CC=C9=DA=C1=C8 rpm) =C9 =CE=C5 =C7=C5=CE=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D3=D4=CF=D1=CE=CE=D9=C8 =CB=C1=D4=C1=CC=CF=C7=C1 -- =C4=CC=D1 =D3=CB= =C1=DE=C9=D7=C1=CE=C9=D1 =C9=CE=C4=C5=CB=D3=CF=D7 =C9 =C4=CC=D1 =D3=CB=C1= =DE=C9=D7=C1=CE=C9=D1 =D0=C1=CB=C5=D4=CF=D7. ~/.hasher/config: workdir=3D$TMPDIR/build mkdir -p "$workdir" known_mountpoints=3D/proc packager=3D"$(rpm --eval %packager)" apt_config=3D~/.hasher/apt.conf sed "s|@HOME@|$HOME|g" <"$apt_config".in >"$apt_config" =FA=C4=C5=D3=D8 =D5=D3=D4=C1=CE=C1=D7=CC=C9=D7=C1=C5=D4=D3=D1 =D2=C1=C2=CF= =DE=C9=CA =CB=C1=D4=C1=CC=CF=C7 =C8=C5=DB=C5=D2=C1 =D0=CF =D5=CD=CF=CC=DE= =C1=CE=C9=C0 (=D3=C2=CF=D2=CB=C1 =CE=C1 tmpfs/swap =C9=C4=A3=D4 =C7=CF=D2=C1=DA=C4=CF =C2=D9=D3=D4=D2=C5=C5, =DE=C5=CD =D3=C2= =CF=D2=CB=C1 =CE=C1 ext3). =EB=C1=D4=C1=CC=CF=C7 /proc =C2=D5=C4=C5=D4 =CD= =CF=CE=D4=C9=D2=CF=D7=C1=D4=D8=D3=D1 =D0=CF =CD=C5=D2=C5 =CE=C5=CF=C2=C8=CF=C4=C9=CD=CF=D3=D4=C9 (=CE=C1 =CF=D3= =CE=CF=D7=C5 =DA=C1=D7=C9=D3=C9=CD=CF=D3=D4=C5=CA =D0=C1=CB=C5=D4=CF=D7). = Packager =D7=D9=D3=D4=C1=D7=CC=D1=C5=D4=D3=D1 =D7 =DA=CE=C1=DE=C5=CE=C9=C5 =C9=DA ~/.rpmmacros (=C9=CE=C1=DE=C5 sisyphus_= check =CE=C5 =D0=D2=CF=CA=C4=A3=D4). =E4=C1=CC=C5=C5 =D3=CF=DA=C4=C1=C5=D4= =D3=D1 =C6=C1=CA=CC apt.conf. ~/.hasher/apt.conf.in: Dir::Etc::SourceList "@HOME@/.hasher/sources.list"; Dir::Etc::SourceParts "/var/empty/"; Dir::State::lists "@HOME@/.hasher/lists/"; Dir::Cache::archives "@HOME@/.hasher/archives/"; =F3=C2=CF=D2=CB=C1 =C2=D5=C4=C5=D4 =C9=C4=D4=C9 =CE=C1 =D2=C5=D0=CF=DA=C9= =D4=CF=D2=C9=C9, =D5=CB=C1=DA=C1=CE=CE=CF=CD =D7 ~/.hasher/sources.list. ~/.hasher/sources.list: rpm [alt] ftp://ftp.altlinux.org/pub/distributions/ALTLinux/Sisyphus x86_64= classic rpm [alt] ftp://ftp.altlinux.org/pub/distributions/ALTLinux/Sisyphus noarch= classic =EB=C1=D4=C1=CC=CF=C7 Dir::State::lists =CF=D0=D2=C5=C4=C5=CC=D1=C5=D4, =CB= =D5=C4=C1 =C2=D5=C4=D5=D4 =D3=CB=C1=DE=C9=D7=C1=D4=D8=D3=D1 =C9=CE=C4=C5=CB= =D3=D9 =D2=C5=D0=CF=DA=C9=D4=CF=D2=C9=D1 (pkglist* =C9 release* =C6=C1=CA=CC=D9) = =D0=D2=C9 'apt-get update'. =EB=C1=D4=C1=CC=CF=C7 Dir::Cache::archives =CF=D0=D2=C5=C4=C5=CC=D1=C5=D4, = =CB=D5=C4=C1 =C2=D5=C4=D5=D4 =D3=CB=C1=DE=C9=D7=C1=D4=D8=D3=D1 =D0=C1=CB=C5= =D4=D9 =D0=D2=C9 'apt-get install'. =FC=D4=C9 =C4=D7=C1 =CB=C1=D4=C1=CC=CF=C7=C1 =CE=D5=D6=CE=CF =D3=CF=DA=C4= =C1=D4=D8 =D4=C1=CB: mkdir -p ~/.hasher/lists/partial mkdir -p ~/.hasher/archives/partial (=D4=CF =C5=D3=D4=D8 =CE=D5=D6=CE=CF =C4=CF=D0=CF=CC=CE=C9=D4=C5=CC=D8=CE= =CF =D3=CF=DA=C4=C1=D4=D8 =D0=CF=C4=CB=C1=D4=C1=CC=CF=C7 part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3=CC=C5=C4=D5=C0=DD=C9=CD =D3=D0=CF=D3=CF=C2=CF=CD. - =E4=CF=C2=C1=D7=C9=D4=D8 =D3=C5=C2=D1 =D7 =C7=D2=D5=D0=D0=D5 rpm, =DE=D4= =CF=C2=D9 =D0=CF=CC=D5=DE=C9=D4=D8 =C4=CF=D3=D4=D5=D0 =CE=C1 =DA=C1=D0=C9= =D3=D8 =D7 /var/cache/apt/archives. - =F0=CF=D3=CC=C5 =DC=D4=CF=C7=CF =CE=D5=D6=CE=CF =D0=C5=D2=C5=CC=CF=C7=C9= =CE=C9=D4=D8=D3=D1. - =F7=CD=C5=D3=D4=CF =CB=C1=D4=C1=CC=CF=C7=C1 ~/.hasher/archives =D3=CF=DA= =C4=C1=D4=D8 =D3=C9=CD=CC=C9=CE=CB: rm -rf ~/.hasher/archives ln -s /var/cache/apt/archives ~/.hasher/archives - =F3=CF=DA=C4=C1=D4=D8 =C9/=C9=CC=C9 =C9=D3=D0=D2=C1=D7=C9=D4=D8 =C6=C1=CA= =CC /var/cache/apt/archives/lock. =F5 =CE=C5=C7=CF =C4=CF=CC=D6=CE=D9 =C2=D9=D4=D8 =D0=D2=C1=D7=C1 =C4=CF= =D3=D4=D5=D0=C1 664, =C1 =CE=C5 644. [ -w /var/cache/apt/archives/lock ] || install -v -m664 /dev/null /var/cach= e/apt/archives/lock --3V7upXqbjpZ4EhLz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkphipsACgkQfBKgtDjnu0b/DACdFFvjvJCzKUwcjOoBlptD4jJz XU8Ani9zwJJeL7mao605kUBB3oxVK2ld =A/CB -----END PGP SIGNATURE----- --3V7upXqbjpZ4EhLz--