Ville Skyttä | 2 Nov 2010 22:59
Favicon

2 commits - createrepo.bash

 createrepo.bash |   25 ++++++++++++++++++++++---
 1 file changed, 22 insertions(+), 3 deletions(-)

New commits:
commit 340eb829f04a9e65aba586f341bc0efaa4ed9778
Author: Ville Skyttä <ville.skytta <at> iki.fi>
Date:   Tue Nov 2 23:58:27 2010 +0200

    Add createrepo --workers (non)completion.

diff --git a/createrepo.bash b/createrepo.bash
index e29ce25..54ac8b2 100644
--- a/createrepo.bash
+++ b/createrepo.bash
 <at>  <at>  -5,7 +5,7  <at>  <at>  _cr_createrepo()
     COMPREPLY=()

     case $3 in
-        --version|-h|--help|-u|--baseurl|--distro|--content|--repo|\
+        --version|-h|--help|-u|--baseurl|--distro|--content|--repo|--workers|\
         --revision|-x|--excludes|--changelog-limit|--max-delta-rpm-size)
             return 0
             ;;
 <at>  <at>  -44,7 +44,7  <at>  <at>  _cr_createrepo()
             --skip-symlinks --changelog-limit --unique-md-filenames
             --simple-md-filenames --distro --content --repo --revision --deltas
             --oldpackagedirs --num-deltas --read-pkgs-list
-            --max-delta-rpm-size' -- "$2" ) )
+            --max-delta-rpm-size --workers' -- "$2" ) )
     else
(Continue reading)

David C. Rankin | 12 Nov 2010 06:27

Something broke in genpkgmetadata.py?

Guys,

	I'm using yum-createrepo 0.9.8-3 on Arch Linux and suddenly my createrepo
updates are failing with the following error:

23:22 nirvana:/home/backup/rpms> sudo createrepo --update -d openSUSE_11.3/
  File "/usr/share/createrepo/genpkgmetadata.py", line 189
    print thing
              ^
SyntaxError: invalid syntax

	Nothing with createrepo has changed, could this be a python/python2 bug? I have
both the following installed:

python 3.1.2-2
python2 2.7-3

--

-- 
David C. Rankin, J.D.,P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com
David C. Rankin | 12 Nov 2010 06:50

Re: Something broke in genpkgmetadata.py?

On 11/11/2010 11:27 PM, David C. Rankin wrote:
> Guys,
> 
> 	I'm using yum-createrepo 0.9.8-3 on Arch Linux and suddenly my createrepo
> updates are failing with the following error:
> 
> 23:22 nirvana:/home/backup/rpms> sudo createrepo --update -d openSUSE_11.3/
>   File "/usr/share/createrepo/genpkgmetadata.py", line 189
>     print thing
>               ^
> SyntaxError: invalid syntax
> 
> 	Nothing with createrepo has changed, could this be a python/python2 bug? I have
> both the following installed:
> 
> python 3.1.2-2
> python2 2.7-3
> 
> 

This bug also effect repoview:

    Updating/Creating repoview index and HTML pages...
  File "/usr/bin/repoview", line 384
    os.mkdir(self.outdir, 0755)
                             ^
SyntaxError: invalid token

    Any help or ideas will be appreciated. Thanks.

(Continue reading)

seth vidal | 12 Nov 2010 07:01
Favicon
Gravatar

Re: Something broke in genpkgmetadata.py?

On Thu, 2010-11-11 at 23:27 -0600, David C. Rankin wrote:
> Guys,
> 
> 	I'm using yum-createrepo 0.9.8-3 on Arch Linux and suddenly my createrepo
> updates are failing with the following error:
> 
> 23:22 nirvana:/home/backup/rpms> sudo createrepo --update -d openSUSE_11.3/
>   File "/usr/share/createrepo/genpkgmetadata.py", line 189
>     print thing
>               ^
> SyntaxError: invalid syntax

if you're using python 3 - then it is possible that print thing is
invalid syntax.

I've not tested or ported createrepo to python3 yet.

-sv
Anders F Björklund | 12 Nov 2010 09:49
Picon
Picon

Re: Something broke in genpkgmetadata.py?

David C. Rankin wrote:

> 	Nothing with createrepo has changed, could this be a python/python2 bug? I have
> both the following installed:
> 
> python 3.1.2-2
> python2 2.7-3

Arch Linux has moved their "python" binary, so you need to patch...
(all #!/usr/bin/python needs to be replaced with #!/usr/bin/python2)

We do similar things on Mac OS X and FreeBSD, where /usr/bin/python
is outdated or non-existant. (real one is in /opt/local or /usr/local)

--anders

PS. This broke a *lot* of python programs, not only yum...
    See https://wiki.archlinux.org/index.php/Python#Python_2

    Almost everyone else has Python 3000 as "python3" instead.
    (and "python2" doesn't exist, only python2.6 and friends)
David C. Rankin | 12 Nov 2010 18:33

Re: Something broke in genpkgmetadata.py?

On 11/12/2010 02:49 AM, Anders F Björklund wrote:
> David C. Rankin wrote:
> 
>> 	Nothing with createrepo has changed, could this be a python/python2 bug? I have
>> both the following installed:
>>
>> python 3.1.2-2
>> python2 2.7-3
> 
> Arch Linux has moved their "python" binary, so you need to patch...
> (all #!/usr/bin/python needs to be replaced with #!/usr/bin/python2)
> 
> We do similar things on Mac OS X and FreeBSD, where /usr/bin/python
> is outdated or non-existant. (real one is in /opt/local or /usr/local)
> 
> --anders
> 
> 
> PS. This broke a *lot* of python programs, not only yum...
>     See https://wiki.archlinux.org/index.php/Python#Python_2
> 
>     Almost everyone else has Python 3000 as "python3" instead.
>     (and "python2" doesn't exist, only python2.6 and friends)
> 

Ah!

	Thank you Anders & Seth. I knew something broke, but not knowing python from a
snake, all I knew was it changed. I also posted this with Arch so I'll see what
the devs think is the cleanest way to handle this with the distro.
(Continue reading)


Gmane