Skip to main content
edited tags
Link
200_success
  • 144.2k
  • 22
  • 188
  • 473
Missed one
Source Link
Jamal
  • 34.9k
  • 13
  • 133
  • 237

A short time ago, I discovered the LinuxFromScratch project. After getting a system up and working (after much struggling), I realized that if I wanted to continue using LFS, some sort of package management would be quite nice. Of course I could have installed Pacman, apt-get, rpm, etc. like any sane person, perhaps. Instead, I was interested in creating my own simple 'package management' system that would keep track of files that belonged to a certain package, etcetera.

and here is md5_gen.pymd5_gen.py (the idea for this code was found by searching Google for something like md5 python"md5 python"):

Sample .crate file:Sample .crate file:

A short time ago, I discovered the LinuxFromScratch project. After getting a system up and working (after much struggling), I realized that if I wanted to continue using LFS, some sort of package management would be quite nice. Of course I could have installed Pacman, apt-get, rpm, etc. like any sane person, perhaps. Instead, I was interested in creating my own simple 'package management' system that would keep track of files that belonged to a certain package, etcetera

and here is md5_gen.py (the idea for this code was found by searching Google for something like md5 python:

Sample .crate file:

A short time ago, I discovered the LinuxFromScratch project. After getting a system up and working (after much struggling), I realized that if I wanted to continue using LFS, some sort of package management would be quite nice. Of course I could have installed Pacman, apt-get, rpm, etc. like any sane person, perhaps. Instead, I was interested in creating my own simple 'package management' system that would keep track of files that belonged to a certain package, etcetera.

md5_gen.py (the idea for this code was found by searching Google for something like "md5 python"):

Sample .crate file:

Specified which files I especially want to be reviewed
Source Link

A short time ago, I discovered the LinuxFromScratch project. After getting a system up and working (after much struggling), I realized that if I wanted to continue using LFS, some sort of package management would be quite nice. Of course I could have installed Pacman, apt-get, rpm, etc. like any sane person, perhaps. Instead, I was interested in creating my own simple 'package management' system that would keep track of files that belonged to a certain package, etc.etcetera

I have attached twoseveral files, two of which I think are particularly in need of review:

  1. package.py – a class that describes information about a package such as its name, its version, what its dependencies are, etcetcetera
  2. fakeroot.py – this file is in charge of installing all of a package's files to the filesystem from a fakeroot, adding records of the installed files to a table in a database called Files, etc.etcetera

A short time ago, I discovered the LinuxFromScratch project. After getting a system up and working (after much struggling), I realized that if I wanted to continue using LFS, some sort of package management would be quite nice. Of course I could have installed Pacman, apt-get, rpm, etc. like any sane person, perhaps. Instead, I was interested in creating my own simple 'package management' system that would keep track of files that belonged to a certain package, etc.

I have attached two files:

  1. package.py – a class that describes information about a package such as its name, its version, what its dependencies are, etc
  2. fakeroot.py – this file is in charge of installing all of a package's files to the filesystem from a fakeroot, adding records of the installed files to a table in a database called Files, etc.

A short time ago, I discovered the LinuxFromScratch project. After getting a system up and working (after much struggling), I realized that if I wanted to continue using LFS, some sort of package management would be quite nice. Of course I could have installed Pacman, apt-get, rpm, etc. like any sane person, perhaps. Instead, I was interested in creating my own simple 'package management' system that would keep track of files that belonged to a certain package, etcetera

I have attached several files, two of which I think are particularly in need of review:

  1. package.py – a class that describes information about a package such as its name, its version, what its dependencies are, etcetera
  2. fakeroot.py – this file is in charge of installing all of a package's files to the filesystem from a fakeroot, adding records of the installed files to a table in a database called Files, etcetera
Fixed edit clash (and backticks are not used for emphasis)
Source Link
Jamal
  • 34.9k
  • 13
  • 133
  • 237
Loading
Added additional files that might be useful for understanding the question
Source Link
Loading
added import statements above the classes
Source Link
Loading
deleted 15 characters in body; edited title
Source Link
Jamal
  • 34.9k
  • 13
  • 133
  • 237
Loading
Corrrected indenting of code formatting
Source Link
holroy
  • 11.5k
  • 1
  • 26
  • 59
Loading
Improved title
Link
Loading
Source Link
Loading