Historical bug tracker for the Pacman package manager.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
FS#3228 - Pacman backup behaviour not consistent
|
DetailsI upgraded two packages from [community], slim and hibernate-script. The PKGBUILDs for both specified a single config file i.e.
backup=(etc/slim.conf) and backup=('etc/hibernate/hibernate.conf') However, hibernate.conf was not saved. Only slim.conf was saved to slim.conf.pacsave. |
This task depends upon
Closed by arjan timmerman (blaasvis)
Sunday, 26 March 2006, 10:54 GMT
Reason for closing: Fixed
Additional comments about closing: in 2.9.8 this is fixed... none of any modified version will be deleted when upgrading.
Sunday, 26 March 2006, 10:54 GMT
Reason for closing: Fixed
Additional comments about closing: in 2.9.8 this is fixed... none of any modified version will be deleted when upgrading.
If you're not familiar with pacman's config files policy, read an appropriate section in man pacman.
I know it's hard to do after the fact, but it would be really helpful if you could reproduce this scenario and show me the output from pacman when you upgrade with the --verbose switch.
Then pacman will show you the md5sums of each backup file and why it's making the choices it is.
Targets: hibernate-script-1.10-3 slim-1.2.3-2
Total Package Size: 0.3 MB
Proceed with upgrade? [Y/n] hibernate-script-1.10-3.pkg.tar.gz is already in the cache
slim-1.2.3-2.pkg.tar.gz is already in the cache
checking package integrity... done.
loading package data... reading /var/cache/pacman/pkg/hibernate-script-1.10-3.pkg.tar.gz... done
reading /var/cache/pacman/pkg/slim-1.2.3-2.pkg.tar.gz... done
done.
checking for file conflicts... done.
upgrading hibernate-script... removing old package first...
running "/sbin/ldconfig -r /"
extracting files...
Updating database...done.
done.
upgrading slim... Executing pre_upgrade script...
echo "umask 0022; source /tmp/pacman-uOTYeO/.INSTALL pre_upgrade 1.2.3-2 1.2.3-1" | /usr/sbin/chroot / /bin/bash
removing old package first...
running "/sbin/ldconfig -r /"
extracting files...
checking md5 hashes for /etc/slim.conf
current: fbd6e59709683ab3105e5be791c3e0da
new: ebe614b359738553b297f9cbdf15fd35
original: fbd6e59709683ab3105e5be791c3e0da
action: installing new file
Updating database...done.
done.
Executing post_upgrade script...
echo "umask 0022; source /var/lib/pacman/local/slim-1.2.3-2/install post_upgrade 1.2.3-2 1.2.3-1" | /usr/sbin/chroot / /bin/bash
running "/sbin/ldconfig -r /"
If it's relevant, Jason Chu also responded on the mailing list, as follows:
<snip>
Dibble, I assume you maintain hibernate. Did you just add the backup
line? There's a "feature" in pacman that files aren't backed up unless
the version installed on the system has the backup entry. So, if you
add a backup entry, the time you upgrade to that package will overwrite
the conf file. All upgrades afterwards won't.
</snip>