You are not logged in.

#26 2009-08-22 13:15:53

meissna
Member
Registered: 2008-12-11
Posts: 17

Re: Python+ALPM+Me = pyalpmm a Python High-Level alpm Library now v0.3

Just an update:

the recent SVN sources work with the latest changes in the alpm library ...
a release will follow.

greetings
markus

Offline

#27 2009-08-22 13:25:38

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: Python+ALPM+Me = pyalpmm a Python High-Level alpm Library now v0.3

The lockfile (logfile?) code looks quite strange

if options.delete_lockfile:
    if config.rights != "root":
        print "[e] You must be root to delete the database lockfile: %s" % config.lockfile
        sys.exit(1)

    if os.path.exists(config.logfile):
        os.unlink(config.logfile)
        print "[+] Successfully deleted the db_lock_file: %s" % config.lockfile
    else:
        print "[-] There is no need to delete the db_lock_file: %s" % config.lockfile

pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#28 2009-08-22 13:50:11

meissna
Member
Registered: 2008-12-11
Posts: 17

Re: Python+ALPM+Me = pyalpmm a Python High-Level alpm Library now v0.3

Uh, took me now 3 times looking at it to see the bug...
yes, this is an evil typo ...

this should delete the db-lockfile, was needed by me while I was playing with alpm initially,
alot of segfaults happend there wink

changed this in svn...
now this works as it was intended, like the help says:
-x, --delete-lock   Deleting the database lockfile (ATTENTION - use only
                        if you know what you are doing! usable standalone and
                        in combination with everything)

maybe this will be removed in one of the next releases...

thanks for the feedback,
greets
meissna

Offline

#29 2009-08-22 14:09:54

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: Python+ALPM+Me = pyalpmm a Python High-Level alpm Library now v0.3

btw if you have any comments / feedbacks about libalpm, you are welcome on pacman-dev ML


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#30 2009-08-22 14:29:40

meissna
Member
Registered: 2008-12-11
Posts: 17

Re: Python+ALPM+Me = pyalpmm a Python High-Level alpm Library now v0.3

Thanks
, I already joined some time ago, maybe I'll write a short hello mail...

Offline

#31 2010-08-18 16:02:46

meissna
Member
Registered: 2008-12-11
Posts: 17

Re: Python+ALPM+Me = pyalpmm a Python High-Level alpm Library now v0.3

Posting the ChangeLog to bump the post, hope this is ok, first post is also edited with the latest information:

Changelog

Version: 0.3

Major Feature Release
- added FULL aur transparency, means seamless update/upgrade/dependency resolving between the AUR and the regular repositories
- --create-default-config added
- --no-confirm added
- massive consistency changes on the API, I know thats bad, but from this point the API won't change that dramaticly
- added the System class/object which allows the developer to work with the pacman package library on the highest possible level, adding/removing/building ----- packages with only one or two lines of code!
- progressbar in mmacman (progress is of course callbacked, so a gui developer could easily adopt it for a gui-progressbar)
- -Q --orphan scanns all packages for orphans (not explicitly installed and not needed packages)
- -Q --aur checks all packages if they come from AUR or from regular repos
- -B builds AUR _and_ regular repo packages
- -Be (editing a PKGBUILD file before the build progress) doesn't work as expected at this point this is a TODO, but absolutly not cruical
- recursivly remove packages (pyalpmm automaticly scans for these, can be turned of by: --no-recursive in mmacman)
- way better signal handling and error handling including transaction interruption
- many, many, many, many bugfixes

Offline

#32 2010-08-29 16:56:28

jvalecillos
Member
Registered: 2009-02-25
Posts: 24

Re: Python+ALPM+Me = pyalpmm a Python High-Level alpm Library now v0.3

Hi, i updated both packages on aur: pyalpmm and pyalpmm-svn

Offline

Board footer

Powered by FluxBB