[Spacewalk-list] Debian Repository Sync

Morgan Cox morgancoxuk at gmail.com
Tue Feb 19 11:42:01 UTC 2013


Hi Steve.

Thanks for that.

I am also trying to get the script to work with Ubuntu.

Your new modified version doesn't work (as it is looking for the work
'debian' in the URL), I tried the version I edited (with the debianroot
part edited out)  and this was the result...


---------------------------------------------------------------------
[root at spacewalk new]# cd ..
[root at spacewalk ~]# ./spacewalk-debian-sync2.pl --username spacecadet
--password '*************' --channel 'ubuntu12.04-main' --url '
http://gb.archive.ubuntu.com/ubuntu/dists/precise/main/binary-amd64/'
INFO: Fetching Packages.gz... done
INFO: Packages in repo:         8076
INFO: Packages already synced:  0
INFO: Packages to sync:         8076
INFO: 1/8076 : language-pack-si_12.04+20120417_all.deb
Error GETing
http://gb.archive.ubuntu.com/pool/main/l/language-pack-si/language-pack-si_12.04+20120417_all.deb:
Not Found at ./spacewalk-debian-sync2.pl line 135
----------------------------------------------


I then tried to modify the new latest script by simply changing the line


if ($url =~ /(.*debian\/)/) {

to

if ($url =~ /(.*ubuntu\/)/) {


Once I did that it 'started' to work.. however bombed out after a few
packages...

----------------------------------------------------------------------------
root at spacewalk new]# ./spacewalk-debian-sync.pl --username spacecadet
--password '******************' --channel 'ubuntu12.04-main' --url '
http://gb.archive.ubuntu.com/ubuntu/dists/precise/main/binary-amd64'

INFO: Repo URL:
http://gb.archive.ubuntu.com/ubuntu/dists/precise/main/binary-amd64
INFO: Debian root is http://gb.archive.ubuntu.com/ubuntu/
INFO: Fetching Packages.gz... done
INFO: Packages in repo:         8076
INFO: Packages already synced:  0
INFO: Packages to sync:         8076
INFO: 1/8076 : language-pack-si_12.04+20120417_all.deb
INFO: 2/8076 : at-spi2-doc_2.4.0-1_all.deb
INFO: 3/8076 : libwrap0-dev_7.6.q-21_amd64.deb
INFO: 4/8076 : fonts-sil-ezra_2.51-7_all.deb
INFO: 5/8076 : python-numpy-doc_1.6.1-6ubuntu1_all.deb
INFO: 6/8076 : language-pack-ks_12.04+20120417_all.deb
INFO: 7/8076 : libtext-diff-perl_1.41-1_all.deb
INFO: 8/8076 : python-apt-doc_0.8.3ubuntu7_all.deb
INFO: 9/8076 : tk_8.5.0-2_all.deb
INFO: 10/8076 : openssh-client_5.9p1-5ubuntu1_amd64.deb
INFO: 11/8076 : openoffice.org-thesaurus-en-au_2.1-5.3ubuntu1_all.deb
INFO: 12/8076 : libbusiness-isbn-data-perl_20081208-1_all.deb
INFO: 13/8076 : libtest-warn-perl_0.23-1_all.deb
INFO: 14/8076 : kajongg_4.8.2-0ubuntu1_all.deb
ERROR: /tmp/kajongg_4.8.2-0ubuntu1_all.deb: This file doesn't appear to be
a package

----------------------------------------------------------------------------

Any ideas how I can get it working with Ubuntu? (it seems to already
halfway work..)

p.s Thanks for your efforts.

Regards


On 15 February 2013 19:21, Steve Meier <email at steve-meier.de> wrote:

> Hi Morgan,
>
> thank you for your feedback. I have updated the script to handle the
> security repository.
>
> You can get the new version from GitHub:
> https://github.com/stevemeier/spacewalk-debian-sync/
>
> Kind regards,
>   Steve
>
> P.S: I am also working on Errata for Debian. If you are interested,
> contact me off-list.
>
> Am 15.02.2013 um 18:51 schrieb Morgan Cox:
>
> Hi
>
> Thanks for getting back to me.
>
> After changing the password I was able to sync using your script (thank
> you!)
>
> However I noticed the script does not work with the security repos though
> ....
>
> i.e
>
> ./spacewalk-debian-sync.pl --username spacecadet --password '**********'
> --channel 'security-deb6-main' ./spacewalk-debian-sync.pl --username
> spacecadet --password 'Cw4rfTg3dXCsswwEdw' --channel 'security-deb6-main'
> --url 'http://security.debian.org/dists/squeeze/updates/main/binary-amd64'
>
> ------------
> ERROR: ERROR: Could not find Debian root directory
> ------------
>
> I have resolved the issue by editing the script and removing references to
> $debianroot
>
> I have uploaded the edited script here
>
> http://pastebin.com/JKMRrByV
>
> Regards
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20130219/f91363f5/attachment.htm>


More information about the Spacewalk-list mailing list