Commit Graph

283 Commits

Author SHA1 Message Date
Jesse Keating
e3a59fe484 Add the repo from topdir to our yumobject for lorax.
This allows lorax to make use of the local low cost repo to fetch
packages from.  Buildinstall would previously get passed this repo as a
runtime argument.
2011-04-29 01:45:28 -07:00
Jesse Keating
7a8ab8817a Add a function for adding repos to the yum object.
This allows us to re-use the code if we add repos later, like the repo
we just gathered and createrepod
2011-04-29 01:45:28 -07:00
Dennis Gilmore
4002565f53 only filter the arch list on x86_64 we cant do it on sparc and ppc.
it really only makes sense on x86_64.
2011-04-11 14:03:01 -05:00
Dennis Gilmore
4bc181ed4a allow source isos to be generated, there is no split media support 2011-02-21 18:28:39 -06:00
Bill Nottingham
b4e40a079e Add an option to allow only grabbing the best provides for a particular depenedency, instead of all. 2011-02-10 15:30:02 -05:00
Jesse Keating
27cf6a26b4 Release 2.5 2011-01-12 13:52:34 -08:00
Martin Gracik
7deae5840c Lorax patch
Use lorax instead of buildinstall
2011-01-12 13:50:39 -08:00
Jesse Keating
6d480f0896 Prep for release 2010-12-21 14:26:25 -08:00
Jesse Keating
5b0c9715a5 Enable efi booting on x86_64 isos
This was requested by Peter Jones.
2010-12-20 13:54:38 -08:00
Martin Gracik
19993ef780 Let the yumconf.persistdir be as the default
This path gets appended to the installroot every time,
even if it's an absolute path, so it ends up being inside
the installroot everytime. We don't want it to be in some
path depending on a temporary workdir. This will put all
the yum files in a standard /var/lib/yum directory inside
the installroot.
2010-11-30 15:11:51 -08:00
Jesse Keating
31d6c3d6ef Prep for release 2010-11-15 16:44:47 -08:00
Jesse Keating
6e28466560 Remove code to generate media:// repodata
This is no longer necessary when doing single media composes
2010-11-15 16:39:27 -08:00
Jesse Keating
cbba0e4cd7 Remove unneeded files now that we don't split 2010-11-12 09:28:15 -08:00
Jesse Keating
d5ef2c25ff Remove ability to generate split media 2010-11-12 09:27:10 -08:00
Jesse Keating
9976438e31 Remove options to do split media composes 2010-11-12 09:18:04 -08:00
Jesse Keating
9b221ec535 Prep for release and further fix pkgorder issue 2010-10-14 10:52:44 -07:00
Jesse Keating
95a8aaa0c1 Add the full boat of possible initrd items 2010-10-14 10:52:02 -07:00
Jesse Keating
18143a47a1 Prep for release 2010-10-13 15:40:40 -07:00
Jesse Keating
17070c0887 Make sure lvm shows up on the first disk (#642557) 2010-10-13 15:39:02 -07:00
Jesse Keating
06c5a94b5b prep for release 2010-06-29 16:00:34 -07:00
Jesse Keating
a7a43e413b Fix a traceback (#609247) 2010-06-29 15:58:55 -07:00
Jesse Keating
39326ef54a Clean up white space. 2010-06-11 08:29:31 -07:00
npetrov
f3dafc4446 adding support to exclude groups (-@fonts) from a default ks file. 2010-06-11 08:28:31 -07:00
npetrov
6703e700ba check for broken symlinks when using --force 2010-06-09 08:34:34 -07:00
Jesse Keating
c6f01468c3 Prep for release 2010-06-04 11:32:05 -07:00
Jesse Keating
7099d39f24 Don't do multilib gathering.
Anaconda won't install them, so why gather them?  Thanks to Seth Vidal
for the code.
2010-06-04 10:29:01 -07:00
npetrov
7dd898cbad fixes --force when compose fails during split-tree process. 2010-05-17 14:38:58 -07:00
npetrov
9f6fe74826 remove anaconda_log 2010-04-29 14:16:51 -07:00
Jesse Keating
ab0b3aa369 Prep for release 2010-04-14 16:14:43 -07:00
Jesse Keating
6ed01b8852 Patch for new anaconda path
This patch came from Chris Lumens via RHBZ 579873
2010-04-14 16:11:10 -07:00
Jesse Keating
be078f9850 Leave some breadcrumbs about the checksum. 2010-04-14 16:01:17 -07:00
Brian C. Lane
38d41ad0be Add proxy support from the repo line in the kickstart file 2010-03-08 17:18:35 -08:00
Jesse Keating
d4fc805857 Catch all kernel packages (#505420) 2009-12-22 12:08:22 -08:00
Jesse Keating
b79b50b669 Prep for release 2009-09-15 16:55:12 -07:00
Jesse Keating
9aed6d9656 rhpl is no longer forced by anaconda 2009-09-15 16:54:27 -07:00
Jesse Keating
d30edb8b6a Prep for release 2009-09-15 14:51:19 -07:00
Jesse Keating
d9a294aee5 Be tolerant of missing package names in pkgorder, helps with small composes 2009-09-15 14:51:19 -07:00
Dennis Gilmore
fe23e1f65a setthe yum arch to sparc64v when making sparc images. We need this since we only have a sparc64 kernel 2009-09-15 14:51:19 -07:00
Bill Nottingham
f8865c35e2 pungi: Fix dependency resolution to recurse properly.
It wasn't properly recusing in the --selfhosting or --fulltree cases
before, leading to potenial broken deps.

Bill

Signed-off-by: Bill Nottingham <notting@redhat.com>
2009-09-15 14:51:19 -07:00
Jesse Keating
acdac6a2be Patch from dgregor for #522371 (no package left behind) 2009-09-15 14:51:19 -07:00
Jesse Keating
1991a09a48 Prep for release 2009-09-15 14:51:18 -07:00
Jesse Keating
0ace77f6c6 mkinitrd isn't being used anymore, dracut is. 2009-09-15 14:51:18 -07:00
Jesse Keating
e434cf4876 Prep for release 2009-08-10 15:00:03 -07:00
Jesse Keating
7f0cd87c4f pychecker clean up, don't overload 'file' 2009-08-04 14:40:32 -07:00
Jesse Keating
05c51e4b96 Cleanup from pychecker, remove unused items. 2009-08-04 14:36:17 -07:00
Jesse Keating
eb3caa4161 Kill extra whitespace 2009-08-04 14:23:55 -07:00
Jesse Keating
cd466ce546 Remove unused functions in splittree 2009-08-04 14:21:59 -07:00
Jesse Keating
af347fd6a3 Avoid conflicting with yum internals 2009-08-04 14:03:40 -07:00
Jesse Keating
5d6fc5c543 Prepare for release 2009-05-21 10:34:00 -07:00
Jesse Keating
179d3cd678 Fix boot.iso showing up on DVD and potentially split media. 2009-05-21 10:31:35 -07:00
Jesse Keating
a859efe4a9 Prep for release 2009-05-19 11:27:48 -07:00
Jesse Keating
8a15ecca80 Use the new splittree method of dynamic srpm cd splitting 2009-05-18 15:37:31 -07:00
Jesse Keating
a73e976bc8 Create a new function to create the splitSRPM dirs
Use this function to create split SRPM dirs on the fly
2009-05-18 14:33:18 -07:00
Jesse Keating
ff3b72a97e Don't set the number of discs we have until after splittree is done.
Splittree now splits as needed, so we can't possible know how many
discs we'll be making until it is done.  This also means that
splittree requires less input from us.
2009-05-15 13:00:40 -07:00
Jesse Keating
e377f015df Use the new function to create the first split dir only. 2009-05-15 12:22:04 -07:00
Jesse Keating
038a98a2d3 Make splits on demand rather than pre-create a hard set of splits. 2009-05-15 11:19:26 -07:00
Jesse Keating
9012c9fd41 Add two new functions to help with creating split dirs on demand.
createFirstSplitDir is called for the first split.
createSplitDir is called for all other splits.
2009-05-15 11:17:23 -07:00
Bill Nottingham
26f9fad9a5 Wire in support for composing 'full' trees with all subpackages.
Since full trees and build-solved trees can affect each other, if we're
doing both we need to loop between them until there are no new packages
added.

Signed-off-by: Bill Nottingham <notting@redhat.com>
2009-04-13 16:16:45 -07:00
Bill Nottingham
0074f79e5d Add a method that completes the package set with all subpackages of currently used source rpms.
In other places, this method could be called No Package Left Behind.

Signed-off-by: Bill Nottingham <notting@redhat.com>
2009-04-13 16:16:31 -07:00
Bill Nottingham
63adcfcc7c Create dicts to map between source and binary packages.
This avoids repeating the operation many times later if we do it
on demand each time.

Signed-off-by: Bill Nottingham <notting@redhat.com>
2009-04-13 16:16:20 -07:00
Bill Nottingham
e437dd7f7f Remove obsolete code.
Signed-off-by: Bill Nottingham <notting@redhat.com>
2009-04-13 16:16:07 -07:00
Bill Nottingham
2c2a1178ae Wire up a commandline option for selfhosting support.
Signed-off-by: Bill Nottingham <notting@redhat.com>
2009-04-13 16:15:54 -07:00
Bill Nottingham
28412ffc8f Resolve package build dependencies.
Since each package we add for build dependencies may add a new source rpm
to our list, this needs to recurse.

Signed-off-by: Bill Nottingham <notting@redhat.com>
2009-04-13 16:15:40 -07:00
Bill Nottingham
f46d84ed73 Operate on source rpm package objects, not a list that is then turned into package objects.
Signed-off-by: Bill Nottingham <notting@redhat.com>
2009-04-13 16:15:21 -07:00
Bill Nottingham
9ecb4c5dc3 Allow ignoring of group metadata from repos.
Signed-off-by: Bill Nottingham <notting@redhat.com>
2009-04-13 16:15:05 -07:00
Jesse Keating
b28d842bec Prep for release 2009-04-13 16:12:25 -07:00
Jesse Keating
c484a26f44 Pad the ppc bootable disks by 15 megs, lots of isofs overhead. 2009-04-07 18:09:00 -07:00
Jesse Keating
44c4028447 Add a function to deselect packages, stolen from Anaconda.
Use deselectPackage to deslect things marked with - in kickstart.
More in line with how anaconda treats them.
2009-04-07 15:03:46 -07:00
Jesse Keating
979c0b5e94 Prep for release 2009-03-24 10:04:00 -07:00
Jesse Keating
db54e3dbfd Add the online-docs group into pkgorder so that they get properly ordered. 2009-03-24 10:02:52 -07:00
Jesse Keating
9d831bc470 Prep for release 2009-03-11 17:51:57 -07:00
Jesse Keating
050c8da46b Use a more future proof doLoggingSetup override. 2009-03-11 17:50:51 -07:00
Jesse Keating
ea148b8b1c Prep for release 2009-03-09 10:56:43 -07:00
Jesse Keating
e3d6cf508d Disable arch test for now, it was tripping i386/i586 for no good reason. 2009-03-04 13:45:44 -08:00
Jesse Keating
bdf3b118aa Fix size estimation in splittree.
This while file needs a major rework, but this gets us correct
size estimations when building up discs.
2009-02-12 11:26:48 -08:00
Jesse Keating
923a0c9392 Prep for release 2009-02-11 17:15:13 -08:00
Jesse Keating
5216793a69 Count all copies of a hardlink when determining CD size for now,
until bug #485167 is fixed.
2009-02-11 17:09:04 -08:00
Jesse Keating
6843a12485 Fix unique md file config setting. 2009-02-10 16:21:17 -08:00
Jesse Keating
7dc76be687 Name the checksum file after the isos being generated. 2009-02-10 16:21:11 -08:00
Jesse Keating
9b77cea3b7 Use sha256 in the treeinfo file 2009-02-10 14:52:01 -08:00
Jesse Keating
90ef65f192 Use sha256 for iso checksums 2009-02-10 14:50:46 -08:00
Jesse Keating
e073e0a032 More generisizing of _doIsoChecksum 2009-02-10 14:49:59 -08:00
Jesse Keating
c0e7d8afe5 Rename _doIsoSha1 to _doIsoChecksum to future proof. 2009-02-10 14:47:37 -08:00
Jesse Keating
074879de5c Use unique md file names for repodata. 2009-02-05 14:24:32 -08:00
Jeroen van Meeuwen (Fedora Unity)
dee9472d0c Do not include boot.iso on any disc 2009-02-05 14:22:35 -08:00
Jeroen van Meeuwen (Fedora Unity)
c4004dd307 Prevent errors from happening by accidently inserting a line between two extraargs.append() calls with options that belong together 2009-01-29 17:56:57 -08:00
Jesse Keating
972240b972 Don't ship boot.iso on cd1 or the DVD. It just wastes space. 2009-01-28 16:02:48 -08:00
Jesse Keating
353600eb98 Add the packages that anaconda forces to be installed into the pkgorder 2009-01-28 14:22:32 -08:00
Jesse Keating
dbf82cce09 Prep for release 2008-12-04 16:36:14 -08:00
Jesse Keating
3ca7a26682 'default' is now a reserved config section. We can't use it anymore. 2008-12-04 15:44:34 -08:00
Jesse Keating
208fe34cc5 Make sure that split SRPMS have the right working size to match that
of the binary splits.
2008-11-24 15:49:44 -08:00
Jesse Keating
a8a1aa0149 Prep for another release 2008-11-04 15:32:29 -08:00
Jesse Keating
056cf18c10 Set the default disc size to 695 which is more appropriate given today's media
and the splittree bug that was just fixed.
2008-11-04 15:30:45 -08:00
Jesse Keating
14771fb5ef Prep for release 2008-11-04 15:13:30 -08:00
Jesse Keating
3c30592dab Use disc_size in splittree as splittree.main() will reset target_size based on it.
Set comps size to 0 as we don't create a comps package anymore.

Longer term we need to stop calling main() from splittree, and instead just
call the functions we need manually.  A bit late for that change for the F10
cycle though.
2008-11-04 14:48:27 -08:00
Jesse Keating
4d01eb4785 Use the https url to bugzilla, otherwise people think they need to re-log in. 2008-10-31 13:09:27 -08:00
Jesse Keating
d77a180f29 Prep for release 2008-10-09 13:19:51 -07:00
Jesse Keating
b929b89835 Handle %packages --default to pick up the default groups. 2008-10-03 15:32:06 -07:00
Jesse Keating
15efef64fa Fix a typo in a comment 2008-10-03 14:23:30 -07:00
Jesse Keating
2fca7f7405 When setting name via /usr/bin/pungi, also set the iso basename. Allow API
callers to still set them differently though.
2008-10-03 11:35:50 -07:00
Jesse Keating
dcf4d90e69 Subclass ConfigParser so that we can store path names as config options
verbatim and avoid having the files be lowercase.
2008-10-03 10:11:00 -07:00
Jesse Keating
c550c16f62 Make sure we don't include the 'sha1:' in the iso SHA1SUM file. 2008-09-30 15:46:59 -07:00
Jesse Keating
94828b34fb New release 2008-09-12 14:07:35 -07:00
Jesse Keating
08fc496a36 Revert "Yum api changed with regard to adding conditionals. Need to pass in just a name"
This reverts commit bc18a1d4f3.

Reverting because yum api reverted back to the way it was.
2008-09-11 13:32:01 -07:00
Jesse Keating
a82d29ccaa Add input-methods. It's a new group, need to get ordering right. 2008-09-11 13:25:39 -07:00
Jesse Keating
e101067357 Make sure we output sha1sums in binary mode. This helps windows. 2008-09-10 15:36:49 -07:00
Jesse Keating
9ca05af1e9 Yum api changed, follow so that we don't break. 2008-08-29 10:55:25 -07:00
Jesse Keating
bc18a1d4f3 Yum api changed with regard to adding conditionals. Need to pass in just a name
rather than a package object.  Also call searchName since that's all we care about.
2008-08-11 22:47:39 -04:00
Jesse Keating
6fc3d4ff79 Prep for release 2008-08-11 11:24:13 -04:00
Jesse Keating
768ab66ee6 isolist is already relative, there is no need to call mkrelative. 2008-08-05 23:25:14 -04:00
Jesse Keating
7326b388c3 Fix up some references due to moving the yum init into it's own function. 2008-08-05 22:49:05 -04:00
Jesse Keating
e9e0a1880c Move the yum object initialization to it's own function.
This is necessary so that we can get a pypungi object without having to
init the repositories.
2008-08-05 15:36:08 -04:00
Jesse Keating
bdaf3a662a Grab ppc images checksums too for our info file. 2008-08-05 14:34:37 -04:00
Jesse Keating
f253e2e8bb Make sure we write out relative paths for the infofile 2008-08-04 17:57:53 -04:00
Jesse Keating
5beb34227e Change slightly the output of _doCheckSum so that it's type:hash for easier parsing. 2008-08-04 17:04:19 -04:00
Jesse Keating
be8b06d523 Make sure we get relative paths to the images. 2008-08-04 16:57:05 -04:00
Jesse Keating
7d92748838 Don't try to make debuginfo repos for source arch. 2008-07-16 13:31:17 -04:00
Jesse Keating
8331ae9e0f Remove the unused discs option. We determine disc number on the fly. 2008-07-15 23:09:57 -04:00
Jesse Keating
6ae28edb54 Prep for release 2008-07-15 19:03:53 -04:00
Jesse Keating
2b5ed26466 Remove some debugging code... 2008-07-15 18:36:07 -04:00
Jesse Keating
116a0df898 Don't read the entire file at once. This will run machines out of memory.
Also, always use binary mode on the files, or else our hashes will be odd.
2008-07-15 18:10:19 -04:00
Jesse Keating
74e014707a Checksum various files from buildinstall output and put them in .treeinfo
This will be used by a verify-tree like tool that will ensure that the
content on disk matches what the compose tool thinks it should.
2008-07-15 15:53:11 -04:00
Jesse Keating
ec8b64e6cf Use new hashsum utility to generate sha1sums of isos.
Call a generic function each time we create an iso file.
2008-07-14 23:27:40 -04:00
Jesse Keating
38bd19ea9a Add a utility to generate a hashsum of a file 2008-07-14 23:26:52 -04:00
Jesse Keating
0517ef0782 Prep for release 2008-07-11 14:31:28 -04:00
Jesse Keating
3e62130a6c Create debuginfo metadata when creating metadata, if we've gathered debuginfo
Move cachedir to a variable definition since we use it more than once.
2008-07-09 18:08:12 -04:00
Jesse Keating
7c2e8593c8 Add a function to download the debuginfo packages we found. 2008-07-09 18:07:50 -04:00
Jesse Keating
26795667ac Add a function to get debuginfo packages to match the other packages we've gathered.
This has a couple hardcoded special cases for kernel and glibc for the -common debuginfo
Try to match the original po as close as possible.
2008-07-09 18:07:42 -04:00
Jesse Keating
cbe47772c9 Change _filtersrc to _filtersrcdebug and call it appropriately.
We now need to filter out debuginfo packages so that we can add the
debuginfo repos to the ks file
2008-07-09 18:07:13 -04:00
Jesse Keating
3cc980b49d Add a config item for debuginfo
We need this as a config object so that we can use it later when
making repodata.
2008-07-09 18:07:13 -04:00
Jesse Keating
874853e78b Add a nodebuginfo option to handle gathering or not gathering of debuginfo packages
Set a config item for it so that we can use it later when creating repodata
Discover and gather debuginfo packages if necessary.
2008-07-09 18:07:05 -04:00
Jesse Keating
3c979842b4 Prep for release 2008-06-24 10:30:41 -04:00
Jesse Keating
15c5b80e87 Take ownership of pkgorder and splittree.py; call appropriately
These two files have been removed from anaconda sources, so we
are taking ownership of them.  We will likely rewrite some of these
but the plan is to keep them as 'utility' type tools so that they
can be used without creating full pungi objects.
2008-06-23 10:27:30 -04:00
Jesse Keating
953ee3addf Prepare for 2.0.0 release. woo! 2008-06-13 18:26:36 -04:00
Jesse Keating
151e3b134e We use sys here too 2008-06-13 13:48:09 -04:00
Jesse Keating
3b955cc823 Fix some typos and handle the fact that baseurl is a list, where as mirrorlist isn't. 2008-06-13 13:47:31 -04:00
Jesse Keating
379020e5c5 Add functionality to pass multiple repos, mirrorlists, and output directory to buildinstall. 2008-06-13 12:56:45 -04:00
Jesse Keating
64e5734178 Add our util.py file with all the "utility" functions. 2008-06-12 11:43:57 -04:00
Jesse Keating
a81ead6181 Move utility functions to util.py; call appropriately.
Also fix some whitespace issues (hey, it's my project, I can do whitespace changes)
2008-06-12 11:36:47 -04:00
Jesse Keating
a9249e3c31 Don't import the files that I've removed. 2008-06-12 11:24:54 -04:00
Jesse Keating
043a799b25 Adjust calls to the single class, only create the object once. 2008-06-12 09:06:19 -04:00
Jesse Keating
4627931835 remove pungi.py 2008-06-12 09:00:53 -04:00
Jesse Keating
3b89e4586b Collapse all of pungi.py to __init__.py 2008-06-12 09:00:43 -04:00
Jesse Keating
4ae0dc35e8 Change permissions on pungi.py, remove gather.py 2008-06-12 08:56:43 -04:00
Jesse Keating
b45c700be8 Collapse all of Gather and Pungi into one class/file. 2008-06-12 08:55:42 -04:00
Jesse Keating
1b58d024a3 Repo cost is now actually referenced as 'cost'. 2008-06-04 16:28:35 -04:00
Jesse Keating
203f152239 Prep for release 2008-05-06 12:39:24 -04:00
Jesse Keating
58c08e04eb prep for release 2008-05-01 11:48:50 -04:00
Jesse Keating
24641ddfbe Fix another problem with src repo generation, handle flavor. 2008-04-16 23:04:25 -04:00
Jesse Keating
e7430529af Prep for release. 2008-04-16 22:23:24 -04:00