summaryrefslogtreecommitdiff
path: root/db-update
AgeCommit message (Collapse)Author
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>
2008-05-06Fix file deletion on package removalAaron Griffin
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-05-06Remove genpkglists from the dbscriptsAaron Griffin
This is silly and broken anyway. We can do this with a cron script later Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-05-06More absolute pathingAaron Griffin
Also, added a pretty comment. It's so pretty! Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-05-06Remove usage of the 64bit dirs from the staging pathAaron Griffin
Packages can be differentiated now by $CARCH in the filename. No need for this extra dir. Also, using absolute paths for binaries Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-05-06Remove testing pathsAaron Griffin
These snuck in in a previous commit Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-05-05Switch the params to be inline with archreleaseAaron Griffin
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-05-02Massive rewrite to make this script uberAaron Griffin
Yeah too much to write out. I basically rewrote it from scratch to use repo-add and all that fun stuff.
2008-04-15Remove SQL database related tasks from these scriptsAaron Griffin
Updating a SQL database should NOT be a task of these scripts. They should deal ONLY with the act of maintaining a pacman repo Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-04-15Switch to proper script usageAaron Griffin
Switch to a callable script in place of an include file Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>