summaryrefslogtreecommitdiffstats
path: root/scripts
AgeCommit message (Collapse)AuthorFilesLines
2007-10-08pacman-optimize: add check for diff/diffutilsDan McGee1-0/+5
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-10-04makepkg: Fix typo to make xdelta creation work.Nathan Jones1-1/+1
Signed-off-by: Nathan Jones <nathanj@insightbb.com> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2007-09-28makepkg: Fix output color codes for realDan McGee1-5/+5
Make sure we reset both the bold attribute and the color attributes when it is necessary. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-09-28makepkg: When we add an option, we should probably make it workDan McGee1-2/+2
The -A,--ignorearch option was added and given help text, but never actually listed as valid to the option parser. Fix this. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-09-28Use ANSI 'foreground' color instead of hardcoding 'white'Aaron Griffin1-5/+5
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2007-09-28Support for localized times in metadataAaron Griffin1-1/+1
Packages and DBs now support using the UNIX epoch (seconds since Jan 1, 1970) for use in builddate and installdate. This will only affect newly built packages. Old existing packages with the text format are still supported, but this is deprecated. In the case of removal of text time support, this code will fail gracefully, returning the start of the epoch for broken packages. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2007-09-25Preliminary support for optdependsDan McGee1-1/+4
Add some alpm functions for getting optdepends, have makepkg include them in the PKGINFO file, and have a pacman -Qi operation display the raw string as stored by libalpm. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-09-17Allow rankmirrors to read from stdinPeter Johnson1-2/+6
Feature Request #8043 and provided patch. Thanks! Signed-off-by: Dan McGee <dan@archlinux.org>
2007-09-17rankmirrors : add support for the $repo var in url.Chantry Xavier1-3/+7
To keep working correctly with url like : ftp://ftp.archlinux.org/$repo/os/i686 rankmirrors will now replace $repo by core. Signed-off-by: Chantry Xavier <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-09-06scripts/*.sh.in: Clean up and fix a few bugsAndrew Fyfe4-234/+237
repo-add, repo-remove: 'bsdtar -c * | ...' doesn't work (you need '-f -'). Code clean up eliminated this bug. Removed the multiple checksum support, pacman now only supports MD5, so there's no need for the database to contain multiple checksums. Quote all variables containing file/dir names to prevent paths containing spaces from causing problems. Add msg, warning and error functions. General code clean up. pacman-optimize: Use a sub-directory in /tmp for working files to make it easier to clean up at the end. Add quotes round $@ in die and die_r, otherwise printf can't display the message correctly. makepkg: Disable colour output if stderr is not a tty. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-08-26scripts/makepkg.sh.in: Add missing [Andrew Fyfe1-1/+1
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-08-23makepkg : add -L (--dereference) to file.Chantry Xavier1-1/+1
makepkg didn't correctly detect the type of the archive since it didn't dereference symlinks, and so failed to extract the source tarball. Signed-off-by: Chantry Xavier <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-08-12scripts/makepkg.sh.in: Fix 2 bugsAndrew Fyfe1-0/+3
- Downloaded files weren't being copied to $srcdir - Counter wasn't being incremented for checksum checks Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-07-26Fix gettext output in repo-{add,remove}Andrew Fyfe2-26/+24
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-07-15makepkg: Add note with some required programs for executionDan McGee1-0/+5
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-07-15Add --asdeps option to pacmanDan McGee1-2/+2
This replaces the former -D operation that was undocumented and rather hacky. It can be used with add, upgrade, or sync transactions and will affect all packages installed. Should close FS #7193. Also tell makepkg to use this new flag. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-07-15Switch repo-add, repo-remove, and pacman-optimize to bsdtarDan McGee3-15/+15
Relatively straightforward fixes (s/tar/bsdtar/g, add hyphens to options). Signed-off-by: Dan McGee <dan@archlinux.org>
2007-07-12Fix previous makepkg patch, and some pacman output.Andrew Fyfe1-0/+2
makepkg: We still need the source files in $srcdir because PKGBUILDS need access to noextract() files and other file not handled by by extract_source(). (eg config files) query.c: Fix some output formating. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-07-10FS#7271 - [patch] option for avoiding caching netfilesAndrew Fyfe1-15/+43
Change the behaviour of makepkg so no longer stores a copy of the source tarball in $srcdir, instead it downloads all sources to $SRCDEST then extracts them to $srcdir. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-07-10makepkg: when running as root, cut out some warningsDan McGee1-2/+2
When running as root, we don't care if fakeroot is installed, and the user certainly isn't "unprivileged". Cut out these warnings. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-07-10Cleanup of pacman_deptest()Andrew Fyfe1-1/+1
Clean up some left over code from http://projects.archlinux.org/git/gitweb.cgi?p=pacman.git;a=commitdiff;h=7653bb93997f52848b54ab80868cd6da52808a75 Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-07-10scripts/makepkg.sh.in: Add CHOST to the list of variables exported.Andrew Fyfe1-1/+1
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-07-09Change the exit code for pacman_deptest().Andrew Fyfe1-1/+1
Changed the exit code for missing deps from 1 to 127 because 1 is used for other errors. makepkg breaks if pacman exits with 1 for any reason other than a missing dep. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-07-06Make paragraph text in scripts single stringsDan McGee9-133/+105
It is much easier for translators to deal with paragraphs as strings rather than by lines. Take all usage and version information and convert it to this format. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-07-06Move scripts from *.in to *.sh.in so gettext can determine typeDan McGee10-20/+24
If we move the scripts from *.in to *.sh.in and *.py.in, gettext can pull the required strings to translate a whole lot easier. Do this. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-28scripts/makepkg.in: Don't include .PKGINFO etc in .FILELISTAndrew Fyfe1-4/+7
And move .PKGINFO and .FILELIST to be the first to files included in the package. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-06-27Remove lockfile configuration from frontend, make it job of libalpmDan McGee1-1/+1
I previously introduced some patches to make just about every path in pacman/libalpm configurable; doing this with the lockfile seemed a bit too far and we really should just place the lockfile where it belongs- with the DB that needs locking. More details in this thread: http://archlinux.org/pipermail/pacman-dev/2007-June/008499.html Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-27scripts/makepkg.in: Use bsdtar to find packages for xdelta.Andrew Fyfe1-9/+10
When looking for old packages to create a delta from used bsdtar to read the packages .PKGINFO to check it's name and arch instead of depending on the filename of th package. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-06-27scripts/makepkg.in: Fix creation of .FILELISTChantry Xavier1-1/+2
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-06-27FS7485: Replace tar/cpio/unzip with bsdtar for extracting/creating packages.Baptiste Daroussin1-17/+5
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-06-17FS7338: Fix conflicts typo totally this time.Chantry Xavier1-1/+1
The last typo fix for conflicts wasn't complete, it only fixed one occurence of the conflicts variable, instead of the two : http://www.archlinux.org/pipermail/pacman-dev/2007-May/008222.html This caused all conflicts statement to be ignored, so all databases will need to be rebuilt with a fixed repo-add. Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
2007-06-13scripts/makepkg.in: Forgot the fakeroot switch when changing to GNU getopt.Andrew Fyfe1-2/+3
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-06-12scripts/makepkg.in: Added fakeroot version to .PKGINFO header.Andrew Fyfe1-0/+3
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-06-12scripts/makepkg.in: Switch to GNU getopt.Andrew Fyfe1-81/+45
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-06-11FS7355: Add --ignorearch option to makepkgAndreas Hauser1-5/+16
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-09makepkg: Make it possible to create an empty packageRoman Kyrylych1-2/+2
Signed-off-by: Roman Kyrylych <roman@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-04Autotool clean up.Andrew Fyfe1-1/+3
* Add vim modeline to Makefile.am and configure.ac * Fix white space in Makefile.am and configure.ac * Add contrib/wget-xdelta.sh to EXTRA_DIST in Makefile.am Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-04scripts/makepkg.in: Add gettext translation for WARNING and ERROR.Andrew Fyfe1-4/+4
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-06-04scripts/makepkg.in: Fix version comparision in create_xdelta().Andrew Fyfe1-12/+20
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-06-04scripts/abs.in: Rearrange/Cleanup.Andrew Fyfe2-54/+111
* Rearrange the script. * Add gettext support. * Clean up usage message. * Add PACKAGE_BUGREPORT to substitution in scripts/Makefile.am Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-04Fix pacman-optimize autoconf pathsDan McGee2-6/+3
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-04Add gettext/i18n to most of the currently-used scriptsGiovanni Scafora7-132/+151
Signed-off-by: Giovanni Scafora <linuxmania@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-04makeworld: var rename from version -> myverDan McGee1-3/+3
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-03scripts/makepkg.in: More clean up.Andrew Fyfe1-12/+21
* Add ChangeLog to source package. * Quote references to $BUILDSCRIPT. * Check $srcdir isn't empty when running --noextract. * Check $pkgdir isn't empty when running --repackage. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-03scripts/makepkg.in: Improve error handling and clean up on exit.Andrew Fyfe1-19/+50
* makepkg now runs with errexit (exit on syntax error) enabled for the whole script. * Removed unneeded setting of errexit around build(). * Added bash traps to catch TERM HUP INT signals. * Added trap to catch unhandled/unknown errors. * Added trap to call clean_up() when the script exits. * Moved call to remove_deps() into clean_up(). * Moved -c/--clean code into clean_up(). Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-03Clean up output messages for translation.Andrew Fyfe1-40/+54
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-06-03scripts/makepkg.in: Rewrite check_{options,buildenv} to tidy them up.Andrew Fyfe1-49/+79
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-06-03scripts/makepkg.in: Clean up.Andrew Fyfe1-44/+36
* Move create_xdelta() outside of fakeroot run. * Clean up dep check functions. * Clean up extract_sources(). Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-02Rename functions in makepkg for consistencyDan McGee1-17/+17
Add a hyphen to any function name that needs it so we are consistent across the board. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-02makepkg: fix create_xdelta() and add warningAsh Milsted1-11/+12
Signed-off-by: Dan McGee <dan@archlinux.org>