summaryrefslogtreecommitdiff
path: root/db-update
AgeCommit message (Collapse)Author
2009-07-21remove trailing slash from ftppath[_any]Francois Charette
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-20any support: use relative symlinksAaron Griffin
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-20Minor syntactic improvements in db-updateFrancois Charette
* also added error msg for repo_lock in db-functions [Aaron: keep quotes around $WORKDIR] Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-20simple syntactic improvementsFrancois Charette
[Aaron: Don't remove quotes around $WORKDIR] Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-20Fix final "cleanup" to avoid spurious error msgFrancois Charette
* When calling cleanup at the end of db-update, the function repo_unlock is called, but the repo-locks have already been unlocked! So we get a spurious error message. This commit replaces "cleanup" by "rm -rf $WORKDIR". Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-14use pkgbase to get pkgbuild in db-updatePierre Schmitz
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-14remove redefined functionPierre Schmitz
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-05-12fixed filename in creation of symlinksFrancois Charette
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-05-12create $WORKDIR before cding to itFrancois Charette
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-05-12Check whether packages exist in build dirs before attempting to copy themFrancois Charette
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-05-06db-update: Add some total counts to outputAaron Griffin
Original-work-by: François Charette <francois@archlinux.org> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-05-06db-update: Replace || with -o in if statementsFrançois Charette
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-05-06db-update: remove 'touch' of empty db fileAaron Griffin
repo-add handles this on its own Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-05-06db-update: Add if check before 'any' removalFrançois Charette
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-05-06db-update: Use proper variable for WORKDIRFrançois Charette
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-03-11Moved arch-independent processing out of the loop.Abhishek Dasgupta
Also fixes the bug in the previous commit, in which the arch-independent packages would be deleted from the staging directory after only one iteration.
2009-03-11db-update: Add support for 'any' archAbhishek Dasgupta
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-03-11Add per-repo SVN configsAaron Griffin
This could be useful if we move community to a separate SVN repo Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-03-11Make db-update parse all architecutresAaron Griffin
ARCHES is defined in config. db-update should now loop over all arches on each run and update whatever is in the staging dir. Remove the db-*64 scripts due to this Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-01-14Merge branch 'master' of file:///srv/projects/git/dbscriptsAaron Griffin
Conflicts: db-update Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-12-29Remove an if check for old staging 'add' dirsAaron Griffin
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-12-16Only remove packages that were successfully addedAaron Griffin
This prevents some errors where packages where removed from the staging dir when they shouldn't have been. Original-idea-by: Pierre Schmitz <pierre@archlinux.org> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-12-12Quiet down repo-add just a bitAaron Griffin
This assumes the -q flag patch is accepted for pacman 8) Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-12-01Do not touch db file if it doesn't existAaron Griffin
repo-add works fine if no db file exists Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-23Only copy DB file from repo if we have pkgsAaron Griffin
We were copying our DB file from the repo to our temp build dir all the time. We should only do this if there are packages to add Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-23Remove some harmless error messagesAaron Griffin
If add/del dirs exist, we try to fix it all up and it can error quite loudly Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-22Remove 'copy_helper' as chmodding is failAaron Griffin
The chmod doesn't work unless the user is the owner of the file Resorting to umask changes here Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-21Fix a variable overwrite when sourcing PKGBUILDsAaron Griffin
The local variable 'arch' was being overwritten when we source PKGBUILDs. Change it to _arch wherever we deal with PKGBUILD files Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-21Remove /del dir usage from db-updateAaron Griffin
db-remove is superior and requiring package files is dumb. Kill off this dir and clean up some code, yay! Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-21Clear traps on cleanupAaron Griffin
This prevents us from trying to remove the lockfile twice, and calling cleanup multiple times Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-20Move everything to /srv to support new server confAaron Griffin
Additionally, make TMPDIR configurable so we can move that Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-11Move as much as we can out to a config fileAaron Griffin
This should allow us to move FTP and SVN placement around Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-09Remove an erroneous '1' signal trap for cleanup() funcAaron Griffin
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-10-21Add copy_helper function to ensure correct permissionsAaron Griffin
This will force all files copied back and forth to have 0664 permissions so that we can attempt to do away with this permission adjusting cron job Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-10-16Fix a typo in db-update's usage outputAaron Griffin
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-09-13Move temporary directories to /home/tmpAaron Griffin
This is to allow moves to /home/ftp/ to remain on the same filesystem, thus making the final moves atomic Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-09-13Validate a package file's architectureAaron Griffin
Apparently, people seem to be renaming files as a "hack" and breaking things. Let's make sure they edited the PKGINFO too Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-08-30Create a "common functions" file for DB scriptsAaron Griffin
Common functions, such as sourcing makepkg, and locking a repo Additionally, repo-locking has been unified to prevent multiple users from corrupting a repo (i.e. db-move run while db-remove in progress) Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-08-30Prevent staging cleanup if copy to repo failsAaron Griffin
This stops files being removed from the staging area if they were not successfully copied to the repo. This can happen due to permission issues with the database when multiple people update the repo in quick succession. Original-work-by: Allan McRae <allan@archlinux.org> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-05-22Use 'mv' to shuffle files out of the *64 dirsAaron Griffin
This way, all package files get cleaned up properly at the end of the process. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-05-14Cron cleanup, and only copy DB files onceAaron Griffin
This would break all adds if there were any deletes. We definitely don't want that. Also, cleanup of cron scripts in the same commit because I'm lazy Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-05-14Make the staging warning stand out moreAaron Griffin
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-05-14Make sure to clean up working temp dirsAaron Griffin
Left in a comment while debugging Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-05-14Remove a check for fakerootAaron Griffin
We don't use fakeroot anymore in these scripts Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-05-07Cleanup some debugging outputAaron Griffin
Leftovers - accidental commit Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-05-07Properly clean up stating dirs after a successAaron Griffin
Remove all package file we added or removed Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-05-07Fail loudly if ftp dir is missingAaron Griffin
This allows us to intuitively handle on-the-fly repos by calling `db-update foobar i686` for the foobar-i686 tag, and let us fail on the server side if the repo hasn't been approved/created by someone with admin rights. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-05-07Make sure we're actually adding/removing filesAaron Griffin
We accidentally were calling repo-add/repo-remove with invalid (empty) params. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-05-07Make sure we copy old staging dir entries properlyAaron Griffin
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-05-07Whoops, 'cd' is a built in - who knew?Aaron Griffin
I sure didn't Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>