summaryrefslogtreecommitdiff
path: root/scripts
Commit message (Collapse)AuthorAge
* makepkg : set sane umask before source extraction.Chantry Xavier2008-02-11
| | | | | | | | | | | This fixes FS#9242 and FS#9362. Set umask before the sources are extracted, and after the /etc/profile.d/* files are sourced in handledeps. This sourcing of profile.d files is why umask was moved to the build function in the first place, as can be seen in commit ac965ed401. Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
* makepkg: do a quick check for the VCS binariesDan McGee2008-02-07
| | | | | | | Fixes FS#9230. Ensure we have the VCS binaries available when doing the development version number checking. Signed-off-by: Dan McGee <dan@archlinux.org>
* add 'force' to PKGINFO, have repo-add respect it.Chantry Xavier2008-02-02
| | | | | | | | Ref: http://www.archlinux.org/pipermail/pacman-dev/2008-January/011023.html Also see FS#9347 and FS#9349. Signed-off-by: Chantry Xavier <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
* repo-remove: print an error in case of an empty dbChantry Xavier2008-02-02
| | | | | | | | When removing the last packages from a database, repo-remove silently failed. Now an error is printed. Signed-off-by: Chantry Xavier <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
* Add deprecation warnings to gensync and updatesyncDan McGee2008-02-02
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* updatesync: incorrect package deletion logicAlex Merry2008-02-02
| | | | | | Fixes FS#9279. Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: ensure binaries in /opt/* are strippedDan McGee2008-01-27
| | | | | | | The path selection for stripping binaries was slightly off, so any binaries in subdirectories of opt/ were missed. Fixes FS#9342. Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg : improve determination of svn revision.Chantry Xavier2008-01-27
| | | | | | | | | | | | | | | | | | | | | The previous sed command matched every line starting with r. For example, with mpd-svn package in aur, the svn log output was rather big, and there were several lines starting with r (the actual revision : r7155, but also other lines starting with reverting and run), so this broke makepkg: > makepkg ==> Determining latest svn revision... -> Version found: 7155 everting un sed: -e expression #1, char 27: unterminated `s' command To make the sed command more bullet proof, I added the -q option of svn log, which produces a quieter output, without the log. And I changed the sed command to only match numbers for the revision. Signed-off-by: Chantry Xavier <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
* workaround for a gettext string starting with --.Chantry Xavier2008-01-20
| | | | | | | Workaround found in Advanced Bash-Scripting Guide, localization section. "added a \0 (NULL) at the beginning of the sentence." Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
* makepkg: add check to ensure we have non-URL files in build dirDan McGee2008-01-20
| | | | | | | | | | | | | | Pacman 3.0 printed the following message if a file could not be found: ERROR: xxx was not found in the build directory and is not a proper URL. We lost this logic in 3.1 when moving to the DLAGENT type stuff, so a not-found file got passed all the way to the download logic where it failed with a odd error message. Bring back some logic to ensure only files with URLs get past a certain point, and fail if the file is not available. Fixes FS#9208. Signed-off-by: Dan McGee <dan@archlinux.org>
* Fix typos in code commentsDan McGee2008-01-13
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: Oops! Lost the colon after forcever in opts parsingDan McGee2008-01-13
| | | | | | | I screwed this up here: 916e226b7839e38d9245ecbef396eb5ba5b6a224 Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: Introduce --holdver option to prevent bumped pkgrelScott Horowitz2008-01-13
| | | | | | | | This allows us to keep the --forcever option internal to makepkg. Fixes FS#9194. Signed-off-by: Dan McGee <dan@archlinux.org>
* Ensure correct dir permissions in the database.Chantry Xavier2008-01-13
| | | | | | | | | | | | Fix for FS#9176. A previous commit (6e8daa553bbd5) already forced all database files to 644. Now the directories are also forced to 755. Additionally, repo-add now sets the umask to 022, just like makepkg does, to fix the problem at its root. Signed-off-by: Chantry Xavier <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
* Update Gensync and Updatesync to use new PKGEXT variableTravis Willard2008-01-13
| | | | | | | | | | Previously, this caused both scripts to look for pkgname-pkgver-pkgrel-arch..pkg.tar.gz - extra period has been removed. Fixes FS#9190. Signed-off-by: Travis Willard <travis@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: Ensure we include all manpage directories in compression lineDan McGee2008-01-09
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: add package name to output when installing packageKarolina Lindqvist2008-01-09
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: Fix issues with --asroot and building dependenciesDan McGee2008-01-08
| | | | | | | | | | The --asroot option was not passed to recursive calls of makepkg. In addition, a 'cd' call was done only on the fakeroot branch instead of both fakeroot and root branches. Move it outside the conditional. Noticed-by: Karolina Lindqvist <karolina.lindqvist@kramnet.se> Signed-off-by: Dan McGee <dan@archlinux.org>
* Remove makeworld from pacman packageDan McGee2008-01-06
| | | | | | | This is an Arch-specific tool (although others could find use in it), so off to the standalone ABS package it goes. Signed-off-by: Dan McGee <dan@archlinux.org>
* Remove hardcoded DBEXT value from scriptDan McGee2008-01-06
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: add application/zip to the recognized typesDan McGee2008-01-05
| | | | | | | | | The recent upgrade of magic.mime in the file program changed the mime type output to application/zip instead of application/x-zip as it is a registered type. Unfortunately we then just skipped zip file extraction becuase of this change. Signed-off-by: Dan McGee <dan@archlinux.org>
* scripts: extra exit() calls in usage() functionGustavo Chain2008-01-05
| | | | | | Remove the exit() calls from usage as they should be handled by the caller. Signed-off-by: Dan McGee <dan@archlinux.org>
* Remove mentions of ABS from makepkgDan McGee2008-01-05
| | | | | | Kill off some of the $ABSROOT stuff that was still hanging around in there. Signed-off-by: Dan McGee <dan@archlinux.org>
* Remove .FILELIST generation from makepkg (and elsewhere)Dan McGee2007-12-29
| | | | | | | | | | | | | | This is something pacman can do on its own straight from the archive, and we will reduce the chance of problems occurring becuase of inproper FILELIST generation as we have had in the past with special characters in filenames. Once we remove it from makepkg. we can remove any usage of it from all of our other tools, including pacman, pactest, and contrib/ utilities. Note that removing it from pacman uncovered a few other bugs anyway, so this was probably a good move. Signed-off-by: Dan McGee <dan@archlinux.org>
* Makepkg missing check for empty pkgnameK. Piche2007-12-28
| | | | | | | | I thought it was wierd that makepkg didn't do a sanity check for the $pkgname. This makes for a simple first try at a GIT patch. Signed-off-by: K. Piche <kevin@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
* Do not move man pages to a non-FHS locationDan McGee2007-12-21
| | | | | | Fixes Arch Linux bug FS#8839. Signed-off-by: Dan McGee <dan@archlinux.org>
* Remove abs from the pacman repositoryDan McGee2007-12-21
| | | | | | | | | | | | abs has always been an Arch Linux specific tool, and although it is used primarily by pacman and makepkg, it should not be included with a distro- agnostic tarball. In addition, maintenance of the script would be better outside of pacman and would allow for more frequent updates. This also facilitates our move away from a cvsup/csup dependent tool for syncing PKGBUILDs. Signed-off-by: Dan McGee <dan@archlinux.org>
* update of translation-help and fix a typo in gensync.Chantry Xavier2007-12-19
| | | | Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
* Set the default packager to "Unknown Packager"Dan McGee2007-12-16
| | | | | | | | There is no real reason to make it look like someone that can't bother to set the packager variable is official in any way, so remove the Arch Linux reference from makepkg. Signed-off-by: Dan McGee <dan@archlinux.org>
* Update GNU GPL boilerplate and copyright datesDan McGee2007-12-10
| | | | | | | Update the GPL boilerplate to direct people to the GNU website for a copy of the license, as well as bump all of Judd's copyrights to 2007. Signed-off-by: Dan McGee <dan@archlinux.org>
* Compress hard linked man pagesAllan McRae2007-12-04
| | | | | | | | | | | This fixes FS#5392. If hard links are present for a man page, all other hard linked files are removed, the man page is zipped and the hard links are updated to the newly compress man page. Signed-off-by: Allan McRae <mcrae_allan@hotmail.com> [Dan: use find -samefile option, don't fail if one of mandirs is nonexistent] Signed-off-by: Dan McGee <dan@archlinux.org>
* pacman-optimize: add note saying sync would be helpfulDan McGee2007-11-13
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* repo-add: Ensure only adding package's deltas.Nathan Jones2007-11-13
| | | | | | | | | | | | | | | | | | | | | | | repo-add was adding the delta files of any package that started with the same package name plus a hyphen. In this example, deltatest-libs delta files were added to the deltatest package: $ repo-add deltatest.db.tar.gz deltatest-1.0.2-1-i686.pkg.tar.gz ==> Extracting database to a temporary location... ==> Adding package 'deltatest-1.0.2-1-i686.pkg.tar.gz' -> Removing existing package 'deltatest-1.0.2-1'... -> Creating 'desc' db entry... -> Computing md5 checksums... -> Creating 'depends' db entry... -> Creating 'deltas' db entry... -> Added delta 'deltatest-1.0.2rc3-1_to_1.0.2-1-i686.delta' -> Added delta 'deltatest-libs-1.0.0-1_to_1.0.1-1-i686.delta' ==> Creating updated database file /tmp/deltatest.db.tar.gz Signed-off-by: Nathan Jones <nathanj@insightbb.com> Signed-off-by: Dan McGee <dan@archlinux.org>
* makeworld: gettext supportGiovanni Scafora2007-11-11
| | | | | Signed-off-by: Giovanni Scafora <linuxmania@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: remove .pacsave files when uninstalling dependenciesRoman Kyrylych2007-11-11
| | | | | Signed-off-by: Roman Kyrylych <roman@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
* Correctly handle version comparisons for SVN/CVS/etc PKGBUILDS.Scott Horowitz2007-11-08
| | | | | | | | | | | Retrieve SVN/CVS/etc revision number before checking if the package has already been built. This allows building a newer version of a developmental package without having to use -f. Now -f will only be needed if the latest SVN/CVS/etc revision is the same as the built package. Signed-off-by: Scott Horowitz <stonecrest@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
* Fix mercurial complaining about directory already existingSebastian Nowicki2007-11-05
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Add support for arch='any'Roman Kyrylych2007-11-04
| | | | | Signed-off-by: Roman Kyrylych <roman@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
* abs: prefer csup to cvsupDan McGee2007-10-30
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: add explicit dir to find callsDan McGee2007-10-28
| | | | | | | Some of the find calls did not have a path, which isn't valid in some versions of the find utility. Add a . for compatibility. Signed-off-by: Dan McGee <dan@archlinux.org>
* Integrate versionpkg into makepkgScott Horowitz2007-10-26
| | | | | | | | If PKGBUILDs use the correct svn/cvs/etc variables, determine the latest revision number and force this as the pkgver for building. Signed-off-by: Scott Horowitz <stonecrest@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: readd -p option that was lost in getopt conversionDan McGee2007-10-26
| | | | | | | The -p option was accidentally dropped in commit 54b71f0427e87e6d525423df06f8a06f2b71c518. Readd it. Signed-off-by: Dan McGee <dan@archlinux.org>
* Add delta information to the repository database.Nathan Jones2007-10-19
| | | | | | | (Dan: cleaned up one if statement) Signed-off-by: Nathan Jones <nathanj@insightbb.com> Signed-off-by: Dan McGee <dan@archlinux.org>
* scripts/makepkg.sh.in: Strip bins/libs in all {bin, sbin, lib} directories.Andrew Fyfe2007-10-18
| | | | | | | | | | In one of the original clean up patches[1] I changed the search path for stripping binaries and libraries. This resulted in only usr/{bin,sbin,lib} being searched. This patch reverts that change. [1] 721ceee1e2c9b18425d84cf39f6541b2f04072b3 Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* Manually check xdelta exit codes.Nathan Jones2007-10-14
| | | | | | | | | | | | | | This is needed because 'xdelta delta' returns 1 even when the delta creation succeeds. This was causing makepkg to exit after the command due to bash's -e option. Some information from the xdelta man page: The delta command exits with status 0 to indicate that no differences were found, with status 1 to indicate that some differences were found, and with status 2 to indicate an error of some kind. Signed-off-by: Nathan Jones <nathanj@insightbb.com> Signed-off-by: Dan McGee <dan@archlinux.org>
* pacman-optimize: add check for diff/diffutilsDan McGee2007-10-08
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: Fix typo to make xdelta creation work.Nathan Jones2007-10-04
| | | | | Signed-off-by: Nathan Jones <nathanj@insightbb.com> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* makepkg: Fix output color codes for realDan McGee2007-09-28
| | | | | | | Make sure we reset both the bold attribute and the color attributes when it is necessary. Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: When we add an option, we should probably make it workDan McGee2007-09-28
| | | | | | | 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>
* Use ANSI 'foreground' color instead of hardcoding 'white'Aaron Griffin2007-09-28
| | | | Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>