[pacman-dev] Downgradability...sort of....

Jatheendra jatheendra at gmail.com
Fri Nov 7 09:20:42 EST 2008

On Fri, Nov 7, 2008 at 7:33 PM, Xavier <shiningxc at gmail.com> wrote:
> On Fri, Nov 7, 2008 at 9:36 AM, Jatheendra <jatheendra at gmail.com> wrote:
>> Hi all,
>> Im trying to add some downgradability magic into pacman .Being quite
>> new to pacman code, i need your help  to identify the possible
>> pitfalls of my approach before trying something.
>> What i plan to do is..
>> In libalpm/remove.c  unlink_file()  [ I guess remove.c is the only
>> place where we are removing files ]
>> replace all unlink(), rename() etc with  copyandunlink , copyandrename
>> etc which will copy the file first into an archive file
>> package-backup.tgs in cache,then do unlink or rename. Then finally
>> include  all the necessary .INSTALL ,PKGINFO ,.CHANGELOG etc and clean
>> up.
>> So even if i do a -Scc i will have a backup of what was installed on
>> my system and can roll back to the previous state.
>> And can sombody please point me to some documentation for libarchive
>> apart from the manpages...
> This does not make any sense. People who run -Scc don't want to keep
> any packages because they take space.

A backup is created while doing -Syu . Then if the package works fine
delete the backup.
> _______________________________________________
> pacman-dev mailing list
> pacman-dev at archlinux.org
> http://archlinux.org/mailman/listinfo/pacman-dev

More information about the pacman-dev mailing list