summaryrefslogtreecommitdiff
path: root/scripts/dpkg-divert.pl
AgeCommit message (Collapse)AuthorFilesLines
2010-07-03dpkg-divert: Rewrite in CGuillem Jover1-369/+0
2010-03-12Use License instead of Licence in stringsGuillem Jover1-2/+2
This removes almost duplicate strings for translation.
2009-12-09dpkg-divert: Do not allow diverting a file to itselfGuillem Jover1-0/+1
This was causing the file to get removed. Closes: #312206
2009-11-08Clean up perl shebang lineGuillem Jover1-1/+1
Use “use warnings” instead of passing “-w”. Remove “--” parameters. Remove shebangs from perl modules. Remove spaces after “#!”.
2009-11-08Add missing license headersGuillem Jover1-0/+15
2008-11-11Use new style perl function callsGuillem Jover1-56/+69
2008-06-23dpkg-divert: new --listpackage optionTimothy G Abbott1-0/+19
* scripts/dpkg-divert.pl: Add new option --listpackage to dpkg-divert. * man/dpkg-divert.1: Document new option.
2008-06-19dpkg-divert: Do not silently enable --rename on --removeGuillem Jover1-1/+0
Closes: #160848
2008-06-19dpkg-divert: Support diverting files from and to different file systemsGuillem Jover1-1/+7
Based on a patch by Juergen Kreileder. Closes: #102144, #149961
2008-06-16dpkg-divert: On renames do no check the target if the source does not existGuillem Jover1-0/+3
The rename is going to be disabled anyway in that case. This also allows to remove bogus diversions. Closes: #476973, #469033
2008-06-09Set PERL_DL_NONLAZY to 1 in perl scripts called by configuration scriptsRaphael Hertzog1-0/+4
* scripts/dpkg-divert.pl, scripts/update-alternatives.pl, scripts/install-info.pl, scripts/dpkg-statoverride.pl: Set PERL_DL_NONLAZY to 1 so that the usage of Locale::Gettext doesn't cause run-time failures when this perl binary module is not compiled for the corresponding perl version (and this happens in configuration scripts, in particular preinst, during upgrades). See http://bugs.debian.org/479711 for details.
2008-01-16Use the perl POSIX module instead of the enoent helper binaryGuillem Jover1-3/+1
2007-12-27dpkg-divert: Fail when diverting to a non existent directoryFlavio Stanchina1-9/+14
Closes: #245562
2007-08-18Fix perl warning when removing a non diverted file with dpkg-divertGuillem Jover1-3/+3
2007-07-22Switch 'dpkg-gettext.pl' to a new style perl module Dpkg::Gettext.Guillem Jover1-2/+1
2007-07-22Switch perl programs to use the new Dpkg module and its variables.Guillem Jover1-8/+5
2007-05-15 * scripts/dpkg-divert.pl (checkmanymodes): Change the error message toGuillem Jover1-1/+1
say 'commands' instead of 'modes'. * scripts/dpkg-statoverride.pl (CheckModeConflict): Likewise. Use gettext for the string.
2007-05-14Fix dpkg-divert to work again w/o specifying the --divert and --packageGuillem Jover1-2/+2
options. Closes: #423864
2007-01-15Make all perl scripts use static and warnings, to ease catching errors.Guillem Jover1-19/+38
2006-06-21Modified some strings to be able to merge them in the .pot files.Guillem Jover1-8/+19
2006-06-17Make similar messages be exactly similarChristian Perrier1-1/+1
2006-05-23Standarize scripts usage output format and at the same time makeGuillem Jover1-28/+31
the strings easier for the translators. Add '--help' and '--version' for most of the scripts. Print the usage and version to stdout.
2006-05-12* Add gettext support for the Perl scripts. Based on a patch byFrank Lichtenheld1-47/+51
Nicolas François. Closes: #165843 * Only print usage information of dpkg-scanpackages on stdout if requested explicetly. Use stderr in case of error. Closes: #366659
2001-06-16Merge v1_9_10 with HEAD.Adam Heath1-5/+5
2001-06-08fix test for illegal packagenameWichert Akkerman1-1/+1
2001-05-29Fix cleanup of .dpkg-devert.tmp files.Adam Heath1-2/+2
2001-04-28Fix removing of diversions. This has always been broken, but was justAdam Heath1-1/+2
masked by another bug, that made it work. :|
2001-04-24Fix incorrect ENOENT testWichert Akkerman1-1/+1
2001-04-24Add new enoent utility to get ENOENT at runtimeWichert Akkerman1-5/+5
2001-03-04* ChangeLog: undo file corruption (ugh)Wichert Akkerman1-1/+1
* utils/start-stop-daemon.8: fix typo * configure.in: use AC_C_INLINE instead of our own test * lib/nfmalloc, include/dpkg-db.h: remove HAVE_INLINE tests, use extern inline directly * lib/varbuf.c: add inline keyowrd to varbufaddc * optlib/Makefile.in: undo earlier patch and build libopt.a again * lib/Makefile.in: use libopt.a again, and a rule to build it * Makefile.in: build optlib before lib * Makefile.conf.in: add RANLIB * dselect/method.h, dselect/methlist.cc, dselect/method.cc, dselect/methparse.cc: rename struct option to dselect_option to prevent conflict with getopt.h * main/help.c: rework do_script a bit to compile without errors * scripts/dpkg-gencontrol.1: add -n option to specify filename * scripts/dpkg-source.1: + document -n option for dpkg-gencontrol + fix confusing wording for dpkg-buildpackage -uc option + fix layout error for dpkg-distaddfile section + it's DEADJOE, not DEAD_JOEY * scripts/dpkg-architecture.pl: + apply cleanup patch from Julian Gilbey + modify gcc regexp to recognize gcc versions like 2.96-ia64-000717 * scripts/dpkg-checkbuilddeps.pl, scripts/dpkg-checkbuilddeps.1: new script from Joey Hess to check build dependencies * THANKS: Add Joey Hess * scripts/dpkg-parsechangelog.pl: + support reading changelog from stdin + remove Linux reference * scripts/dpkg-statoverride.pl: exit with exitcode 1 if we do --list but don't output anything, and use exitcode 2 if we try to remove a non-exiting override (unless --force is given). * scripts/dpkg-statoverride.8: document new exitcode for --list * main/main.c, main/dpkg.8: remove --smallmem and --largemem references * scripts/dpkg-buildpackage.sh: + don't bother to specify architecture settings on commandlines since we put them in the environment already + remove debsign support, it's useless and debsign can't handle it + use DEB_BUILD_ARCH to get build architecture, not DEB_HOST_ARCH + remove Linux reference * scripts/dpkg-scanpackages.pl: mark last argument as optional in usage info * scripts/dpkg-scanpackages.8, scripts/dpkg-name.1, scripts/dpkg-shlibdeps.pl, scripts/dpkg-source.pl, scripts/822-date.1, scripts/cl-debian.pl, scripts/cleanup-info.pl, scripts/dpkg-genchanges.pl, scripts/dpkg-distaddfile.pl, scripts/dpkg-source.1, scripts/dpkg-divert.pl, scripts/install-info.pl, scripts/install-info.8, scripts/dpkg-gencontrol.pl, scripts/update-alternatives.pl, scripts/update-rc.d.8: remove Linux references
2001-02-23scripts/dpkg-divert.pl: fix typo in usage messageWichert Akkerman1-1/+1
main/help.c: mangle argv[0] in do_script to always be the full path include/dpkg-db.h: include string.h so things compile on ia64 scripts/dpkg-architecture.pl: add ia64
2001-01-22scripts/dpkg-divert.pl: only allow absolute filenamesWichert Akkerman1-0/+2
main/configure.c: add -N option to diff invocation
2000-12-24Add --truename option.Adam Heath1-0/+14
2000-09-26don't print version twice on --helpWichert Akkerman1-4/+3
2000-09-08Small change to make testing easierWichert Akkerman1-1/+1
2000-09-08scripts/dpkg-divert.pl: change $dpkglibdir to $admindirWichert Akkerman1-9/+9
scripts/Makefile.in: set $admindir as well in scripts
2000-06-12configure.in: generate doc/sv/Makefile as wellWichert Akkerman1-13/+18
main/filesdb.c: fix logic when reading statusoverride-file scripts/.cvsignore: add all the perl scripts scripts/dpkg-divert.pl: + turn $admindir into $dpkglibdir, which the Makefile will handle + fix glob->regexp logic for --list scripts/Makefile.in: + replace one `sed' with `$(SED)' + add dpkg-statoverride scripts/dpkg-statoverride.pl: new util to manage statoverrides debian/rules: move Swedish manpages into the package as well
2000-04-13Synchronize with potato-branch again:Wichert Akkerman1-1/+1
+ scripts/dpkg-divert.pl: fixed typo + debian/dpkg-dev.{postinst,prerm}: remove emacsen-common stuff + po/{es,sv}.po: updated + debian/changelog: include changes for 1.6.12 + dpkg-genchanges: recognize non-deb packages (tarballs, such as dpkg-non-deb and boot-floppies disk tarballs). This makes sure that we include them when figuring up the Arch field in the .changes + scripts/dpkg-buildpackage.sh: Don't default to no signing until after we parsed the options, otherwise we will miss overrides.
2000-03-18Synchronize to the potato branch againWichert Akkerman1-1/+2
2000-03-08Synchronize with potato-branch again:Wichert Akkerman1-2/+6
debian/changelog: update to 1.6.10 scripts/dpkg-divert.pl: reinstate last writeability-patch. Modified to not abort on ENOENT: this indicates a directory does not (yet) exist. If this happens don't try to rename. scripts/update-alternatives.pl: + update usage-warning to reflect the new --config option + Document some global variables + Switch back to auto-mode when removing a manually selected alternative dselect/{dselect.h,main.cc,pkglist.cc}: remove CAN_RESIZE stuff dselect/methlist.cc: don't abort if getch fails due to interrupted syscall dselect/pkglist.cc: don't abort if getch fails due to interrupted syscall dselect/baselist.cc: put debug-statement in sigwinchhandler and actually resize the current terminal before redisplaying the screen
1999-12-05dpkg-divert manpage addedWichert Akkerman1-18/+29
1999-10-29 * dpkg-divert: Fix check for writable filesystem, closes: #48646Ben Collins1-8/+6
1999-10-21 * Fixed the check that was added to dpkg-divert.Ben Collins1-1/+5
* Removed the lib version checking. * Oops, somehow the --config feature went missing from update- alternatives
1999-10-21 * Fixed some compiler warningsBen Collins1-0/+10
* Make start-stop-daemon exit(1) when we don't find one of the pid's we are trying to kill, in accordance with the man page. * When running --configure on an already installed package, just say it's installed, and not that it is in an unconfigurable state * Bah, add all the prefix/datadir... stuff back to the install target in debian/rules (po/ doesn't use it) * Add function to libdpkg that dpkg can call to make sure it's compiled version matches that of the library. If it fails, complain loudly, but allow to proceed * Make dpkg check for uid 0 requirement, before checking the path since not being root, is probably the reason that the PATH is borked in the first place * Make -p short for --print-avail, and -P short for --purge * Fix typo in md5sum(1) man page * start-stop-daemon: Add --background and --make-pidfile options * update-alternatives: make sure we remove "old" symlinks when they are no longer pertinent. Add /etc/alternatives/README that refers to the update-alternatives(8) man page. * dpkg-divert: Add check for being able to write to the old/new destination before doing a rename. We fail on this, without changing the diversion registry * Fix bad regex in update-rc.d
1999-10-17Add changes from 1.4.1.16 release. Unfortunately it's too late to tag thingsWichert Akkerman1-1/+3
now :(
1999-10-14Use POSIX instead of ErrnoWichert Akkerman1-1/+1
Fixup debian/rules
1999-10-14Don't hardcode ENOENT in perlscriptsWichert Akkerman1-3/+1
Add mips to archtable
1999-02-131.4.1.1 changes by Wichert AkkermanGuy Maor1-0/+1
1999-01-29dpkg 1.4.1Guy Maor1-0/+2
1996-07-04dpkg (1.2.12); priority=LOWIan Jackson1-3/+4
* dpkg --search and --list understand and comment on diversions. * dpkg-divert displays diversions more intelligibly. * Guidelines are somewhat clearer about descriptions. * deb(5) describes new format; old moved to deb-old(5). (Bug#3435.) * deb-control(5) carries a warning about being out of date. * Added 1996 to dselect version/copyright. -- Ian Jackson <ian@chiark.chu.cam.ac.uk> Thu, 4 Jul 1996 15:04:49 +0100